summaryrefslogtreecommitdiff
path: root/libav/wav.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2001-08-15 13:06:48 +0000
committerFabrice Bellard <fabrice@bellard.org>2001-08-15 13:06:48 +0000
commit67e9bb0d0b0964a3a2499daf7e81a7053da3a8be (patch)
treee475ea373efee5f10de66e42663d7fb55db87307 /libav/wav.c
parent27e084bd61c9aea372876bdc543732c2dc5e056a (diff)
fixed wav riff tag size
Originally committed as revision 95 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/wav.c')
-rw-r--r--libav/wav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libav/wav.c b/libav/wav.c
index c3a430df54..70a0e41b41 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);