fixed avi RIFF header size

Originally committed as revision 56 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Fabrice Bellard 2001-08-08 18:51:59 +00:00
parent c10e9f70c0
commit e643b32b1b

View File

@ -340,7 +340,7 @@ static int avi_write_trailer(AVFormatContext *s)
/* update file size */ /* update file size */
file_size = url_ftell(pb); file_size = url_ftell(pb);
url_fseek(pb, 4, SEEK_SET); url_fseek(pb, 4, SEEK_SET);
put_le32(pb, file_size); put_le32(pb, file_size - 8);
url_fseek(pb, file_size, SEEK_SET); url_fseek(pb, file_size, SEEK_SET);
} }
put_flush_packet(pb); put_flush_packet(pb);