summaryrefslogtreecommitdiff
path: root/libavformat/wav.c
diff options
context:
space:
mode:
authorBrian Becker <brian.becker@palmone.com>2004-03-10 03:54:56 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-03-10 03:54:56 +0000
commit361b1b86763fdede33defccf4d7e122466e62020 (patch)
tree6859004c207dc9c08879cd0887b5febd8857a183 /libavformat/wav.c
parentbb01a3f021d742b8b9615ec26c12a49d464b0053 (diff)
Correcting the header size for ADPCM_IMA_WAV files patch by (Brian Becker <brian dot becker at palmone dot com>)
Originally committed as revision 2867 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r--libavformat/wav.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c
index 787c7d542f..1beb7359da 100644
--- a/libavformat/wav.c
+++ b/libavformat/wav.c
@@ -102,6 +102,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
put_le32(pb, 0); /* dwPTSHigh */
} else if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) {
put_le16(pb, 2); /* wav_extra_size */
+ hdrsize += 2;
put_le16(pb, ((enc->block_align - 4 * enc->channels) / (4 * enc->channels)) * 8 + 1); /* wSamplesPerBlock */
} else
put_le16(pb, 0); /* wav_extra_size */