summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-09-05 16:05:14 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-09-05 16:05:14 +0000
commit0e6300acae29ac5c9bbcfb63b779056dc5a66297 (patch)
tree7d550317826189c5cc7728f6df1fe19063eb84cd /media-video/avifile/files
parentremove deprecated tail +# (diff)
downloadgentoo-2-0e6300acae29ac5c9bbcfb63b779056dc5a66297.tar.gz
gentoo-2-0e6300acae29ac5c9bbcfb63b779056dc5a66297.tar.bz2
gentoo-2-0e6300acae29ac5c9bbcfb63b779056dc5a66297.zip
Fixing bug with gcc 2.95. Closes #27987
Diffstat (limited to 'media-video/avifile/files')
-rw-r--r--media-video/avifile/files/flvenc-patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/media-video/avifile/files/flvenc-patch b/media-video/avifile/files/flvenc-patch
new file mode 100644
index 000000000000..a634abdeb344
--- /dev/null
+++ b/media-video/avifile/files/flvenc-patch
@@ -0,0 +1,20 @@
+--- flvenc.c.org 2003-09-06 17:56:37.000000000 +0000
++++ ffmpeg/libavformat/flvenc.c 2003-09-06 17:51:55.000000000 +0000
+@@ -224,13 +224,15 @@
+
+ static int flv_write_trailer(AVFormatContext *s)
+ {
++ int64_t file_size ;
++ int flags = 0;
+ ByteIOContext *pb = &s->pb;
+ FLVContext *flv = s->priv_data;
+
+ Dump(flv,pb,1);
+
+- int64_t file_size = url_ftell(pb);
+- int flags = 0;
++ file_size = url_ftell(pb);
++
+ flags |= flv->hasAudio ? 4 : 0;
+ flags |= flv->hasVideo ? 1 : 0;
+ url_fseek(pb, 4, SEEK_SET);