diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-07-10 23:18:09 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-07-10 23:18:09 +0000 |
commit | 14b3225377998175b0ce1026432d179d34d179c0 (patch) | |
tree | fa73c67f893d921f73f61d8f3050fefce954f63b /libavformat/flvenc.c | |
parent | ec0eeaa21278334e21bbc8004b7f0d2e9e65ea64 (diff) | |
download | ffmpeg-14b3225377998175b0ce1026432d179d34d179c0.tar.gz |
Building ffmpeg with gcc-2.95.3 encountered a problem due to C99 initialization fix by ("Steven M. Schultz" <sms at 2BSD dot COM>)
Originally committed as revision 2032 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvenc.c')
-rw-r--r-- | libavformat/flvenc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index b717bbb163..72abb657b1 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -224,13 +224,15 @@ static void Dump(FLVContext *flv, ByteIOContext *pb, int count) 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); |