diff options
Diffstat (limited to 'media-sound/ogmtools/files')
4 files changed, 56 insertions, 0 deletions
diff --git a/media-sound/ogmtools/files/ogmtools-1.5-comments.patch b/media-sound/ogmtools/files/ogmtools-1.5-comments.patch new file mode 100644 index 000000000000..0440a8040b8c --- /dev/null +++ b/media-sound/ogmtools/files/ogmtools-1.5-comments.patch @@ -0,0 +1,21 @@ +--- vorbis_header_utils.c.orig Fri Aug 31 14:47:55 2007 ++++ vorbis_header_utils.c Fri Aug 31 14:51:23 2007 +@@ -153,15 +153,15 @@ + die("malloc"); + + memcpy(new_vc, vc, sizeof(vorbis_comment)); +- new_vc->user_comments = (char **)malloc((vc->comments + 1) * sizeof(char *)); +- new_vc->comment_lengths = (int *)malloc((vc->comments + 1) * sizeof(int)); ++ new_vc->user_comments = (char **)malloc((vc->comments + 1) * sizeof(*new_vc->user_comments)); ++ new_vc->comment_lengths = (int *)malloc((vc->comments + 1) * sizeof(*new_vc->comment_lengths)); + if ((new_vc->user_comments == NULL) || (new_vc->comment_lengths == NULL)) + die("malloc"); + for (i = 0; i < vc->comments; i++) + new_vc->user_comments[i] = strdup(vc->user_comments[i]); + new_vc->user_comments[vc->comments] = 0; + memcpy(new_vc->comment_lengths, vc->comment_lengths, +- (vc->comments + 1) * sizeof(char *)); ++ (vc->comments + 1) * sizeof(*new_vc->comment_lengths)); + new_vc->vendor = strdup(vc->vendor); + + return new_vc; diff --git a/media-sound/ogmtools/files/ogmtools-1.5-endian-fix.patch b/media-sound/ogmtools/files/ogmtools-1.5-endian-fix.patch new file mode 100644 index 000000000000..8945ca47c082 --- /dev/null +++ b/media-sound/ogmtools/files/ogmtools-1.5-endian-fix.patch @@ -0,0 +1,11 @@ +--- avilib/avidump.c.orig 2004-11-02 15:30:16.000000000 +0000 ++++ avilib/avidump.c 2004-11-17 19:12:02.730255128 +0000 +@@ -54,7 +54,7 @@ + ((x<<8) & 0x00ff0000) |\ + ((x<<24) & 0xff000000)) + # define SWAP8(x) (((SWAP4(x)<<32) & 0xffffffff00000000ULL) |\ +- (SWAP4(x))) ++ SWAP4(x)) + #else + # define SWAP2(a) (a) + # define SWAP4(a) (a) diff --git a/media-sound/ogmtools/files/ogmtools-1.5-summary_length.patch b/media-sound/ogmtools/files/ogmtools-1.5-summary_length.patch new file mode 100644 index 000000000000..8457918beb8f --- /dev/null +++ b/media-sound/ogmtools/files/ogmtools-1.5-summary_length.patch @@ -0,0 +1,12 @@ +diff -ur ogmtools-1.5.orig/ogminfo.c ogmtools-1.5/ogminfo.c +--- ogmtools-1.5.orig/ogminfo.c 2003-11-21 00:21:36.000000000 +0200 ++++ ogmtools-1.5/ogminfo.c 2009-05-12 12:41:58.000000000 +0300 +@@ -513,7 +513,7 @@ + stream->serial, stream->size, + (stream->size * 8.0 / 1000.0) / now, + (stream->size / 1024.0) / now, +- stream->num_packets, now * 1000.0); ++ stream->num_packets, now); + stream = stream->next; + } + } diff --git a/media-sound/ogmtools/files/ogmtools-1.5-vorbis_verbosity.patch b/media-sound/ogmtools/files/ogmtools-1.5-vorbis_verbosity.patch new file mode 100644 index 000000000000..085cc5d978d3 --- /dev/null +++ b/media-sound/ogmtools/files/ogmtools-1.5-vorbis_verbosity.patch @@ -0,0 +1,12 @@ +diff -ur ogmtools-1.5.orig/ogminfo.c ogmtools-1.5/ogminfo.c +--- ogmtools-1.5.orig/ogminfo.c 2003-11-21 00:21:36.000000000 +0200 ++++ ogmtools-1.5/ogminfo.c 2009-05-12 12:42:56.000000000 +0300 +@@ -188,7 +188,7 @@ + } + vorbis_comment_clear(&vc); + } else if ((stream->stype == 'a') && stream->vorbis) { +- if (verbose < 1) ++ if (verbose < 2) + return; + fprintf(stdout, "(%s) a%d: % 7ld bytes granulepos: % 10lld pno: % 10lld ", + __FILE__, stream->sno, pack->bytes, ogg_page_granulepos(page), |