From 67e9bb0d0b0964a3a2499daf7e81a7053da3a8be Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Wed, 15 Aug 2001 13:06:48 +0000 Subject: [PATCH] fixed wav riff tag size Originally committed as revision 95 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libav/wav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libav/wav.c b/libav/wav.c index c3a430d..70a0e41 100644 --- a/libav/wav.c +++ b/libav/wav.c @@ -72,7 +72,7 @@ static int wav_write_trailer(AVFormatContext *s) /* update file size */ file_size = url_ftell(pb); url_fseek(pb, 4, SEEK_SET); - put_le32(pb, (UINT32)file_size); + put_le32(pb, (UINT32)(file_size - 8)); url_fseek(pb, file_size, SEEK_SET); put_flush_packet(pb); -- 2.7.4