diff riff.c @ 4837:4b74f09970d0 libavformat

Reduce code duplication. Patch by Zhentan Feng, spyfeng gmail
author cehoyos
date Wed, 08 Apr 2009 16:01:10 +0000
parents 231479c86582
children 1f3ed3c89790
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){