From e643b32b1b37f6ad1b7bfc408eddcab74b077c5f Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Wed, 8 Aug 2001 18:51:59 +0000 Subject: [PATCH] fixed avi RIFF header size Originally committed as revision 56 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libav/avienc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libav/avienc.c b/libav/avienc.c index cef541d7ba..a580e53098 100644 --- a/libav/avienc.c +++ b/libav/avienc.c @@ -340,7 +340,7 @@ static int avi_write_trailer(AVFormatContext *s) /* update file size */ file_size = url_ftell(pb); url_fseek(pb, 4, SEEK_SET); - put_le32(pb, file_size); + put_le32(pb, file_size - 8); url_fseek(pb, file_size, SEEK_SET); } put_flush_packet(pb);