Mercurial > libavformat.hg
changeset 166:2271829b6f7e libavformat
Building ffmpeg with gcc-2.95.3 encountered a problem due to C99 initialization fix by ("Steven M. Schultz" <sms at 2BSD dot COM>)
author | michaelni |
---|---|
date | Thu, 10 Jul 2003 23:18:09 +0000 |
parents | e4d2f704bf80 |
children | e284cddf0509 |
files | flvenc.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flvenc.c Thu Jul 10 09:04:04 2003 +0000 +++ b/flvenc.c Thu Jul 10 23:18:09 2003 +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);