Mercurial > libavformat.hg
changeset 379:b056f76ec6eb libavformat
Correcting the header size for ADPCM_IMA_WAV files patch by (Brian Becker <brian dot becker at palmone dot com>)
author | michael |
---|---|
date | Wed, 10 Mar 2004 03:54:56 +0000 |
parents | abd83fc30f0e |
children | 9416dc106e06 |
files | wav.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/wav.c Wed Mar 10 03:45:14 2004 +0000 +++ b/wav.c Wed Mar 10 03:54:56 2004 +0000 @@ -102,6 +102,7 @@ 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 */