Commit e9463442 authored by michaelni's avatar michaelni

Building ffmpeg with gcc-2.95.3 encountered a problem due to C99...

Building ffmpeg with gcc-2.95.3 encountered a problem due to C99 initialization fix by ("Steven M. Schultz" <sms at 2BSD dot COM>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2032 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 989d7114
...@@ -224,13 +224,15 @@ static void Dump(FLVContext *flv, ByteIOContext *pb, int count) ...@@ -224,13 +224,15 @@ static void Dump(FLVContext *flv, ByteIOContext *pb, int count)
static int flv_write_trailer(AVFormatContext *s) static int flv_write_trailer(AVFormatContext *s)
{ {
int64_t file_size;
int flags = 0;
ByteIOContext *pb = &s->pb; ByteIOContext *pb = &s->pb;
FLVContext *flv = s->priv_data; FLVContext *flv = s->priv_data;
Dump(flv,pb,1); Dump(flv,pb,1);
int64_t file_size = url_ftell(pb); file_size = url_ftell(pb);
int flags = 0;
flags |= flv->hasAudio ? 4 : 0; flags |= flv->hasAudio ? 4 : 0;
flags |= flv->hasVideo ? 1 : 0; flags |= flv->hasVideo ? 1 : 0;
url_fseek(pb, 4, SEEK_SET); url_fseek(pb, 4, SEEK_SET);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment