Mercurial > libavformat.hg
changeset 1803:f05a4a9b1d19 libavformat
Remove code duplicated between adpcm.c and riff.c
author | mbardiaux |
---|---|
date | Tue, 20 Feb 2007 14:31:43 +0000 |
parents | 15462a5de747 |
children | 302115721ef5 |
files | riff.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/riff.c Tue Feb 20 11:09:47 2007 +0000 +++ b/riff.c Tue Feb 20 14:31:43 2007 +0000 @@ -364,7 +364,7 @@ } 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 */ + put_le16(pb, enc->frame_size); /* wSamplesPerBlock */ } else if(enc->extradata_size){ put_le16(pb, enc->extradata_size); put_buffer(pb, enc->extradata, enc->extradata_size);