Commit 008df57d authored by michael's avatar michael

Correcting the header size for ADPCM_IMA_WAV files patch by (Brian Becker...

Correcting the header size for ADPCM_IMA_WAV files patch by (Brian Becker <brian dot becker at palmone dot com>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2867 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 60d43c3e
...@@ -102,6 +102,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc) ...@@ -102,6 +102,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc)
put_le32(pb, 0); /* dwPTSHigh */ put_le32(pb, 0); /* dwPTSHigh */
} else if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) { } else if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) {
put_le16(pb, 2); /* wav_extra_size */ put_le16(pb, 2); /* wav_extra_size */
hdrsize += 2;
put_le16(pb, ((enc->block_align - 4 * enc->channels) / (4 * enc->channels)) * 8 + 1); /* wSamplesPerBlock */ put_le16(pb, ((enc->block_align - 4 * enc->channels) / (4 * enc->channels)) * 8 + 1); /* wSamplesPerBlock */
} else } else
put_le16(pb, 0); /* wav_extra_size */ put_le16(pb, 0); /* wav_extra_size */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment