Mercurial > libavformat.hg
changeset 4837:4b74f09970d0 libavformat
Reduce code duplication.
Patch by Zhentan Feng, spyfeng gmail
author | cehoyos |
---|---|
date | Wed, 08 Apr 2009 16:01:10 +0000 |
parents | bf87d9ffb3ae |
children | 78eb7d728be4 |
files | riff.c |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/riff.c Wed Apr 08 07:16:14 2009 +0000 +++ b/riff.c Wed Apr 08 16:01:10 2009 +0000 @@ -352,10 +352,7 @@ bytestream_put_le16(&riff_extradata, 16); /* fwHeadFlags */ bytestream_put_le32(&riff_extradata, 0); /* dwPTSLow */ bytestream_put_le32(&riff_extradata, 0); /* dwPTSHigh */ - } else if (enc->codec_id == CODEC_ID_GSM_MS) { - hdrsize += 2; - bytestream_put_le16(&riff_extradata, enc->frame_size); /* wSamplesPerBlock */ - } else if (enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) { + } else if (enc->codec_id == CODEC_ID_GSM_MS || enc->codec_id == CODEC_ID_ADPCM_IMA_WAV) { hdrsize += 2; bytestream_put_le16(&riff_extradata, enc->frame_size); /* wSamplesPerBlock */ } else if(enc->extradata_size){