changeset 3893:8e7b2616e1ad libavformat

Fix msgsm in wav, do not set blkalign to frame size, this is wrong, all samples have correct blkalign set to 65
author bcoudurier
date Thu, 04 Sep 2008 23:19:53 +0000
parents 8f1928b41f45
children 30c8c9f53b9d
files riff.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/riff.c	Thu Sep 04 23:08:19 2008 +0000
+++ b/riff.c	Thu Sep 04 23:19:53 2008 +0000
@@ -265,7 +265,7 @@
         av_log(enc, AV_LOG_WARNING, "requested bits_per_sample (%d) and actually stored (%d) differ\n", enc->bits_per_sample, bps);
     }
 
-    if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS || enc->codec_id == CODEC_ID_AC3) {
+    if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_AC3) {
         blkalign = enc->frame_size; //this is wrong, but it seems many demuxers do not work if this is set correctly
         //blkalign = 144 * enc->bit_rate/enc->sample_rate;
     } else if (enc->codec_id == CODEC_ID_ADPCM_G726) { //