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
pull/126/head
Brian Becker 21 years ago committed by Michael Niedermayer
parent bb01a3f021
commit 361b1b8676
  1. 1
      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 */

Loading…
Cancel
Save