diff wav.c @ 577:f8edb92d97b6 libavformat

cbr audio muxing fix
author michael
date Sat, 06 Nov 2004 19:11:34 +0000
parents d82ccc7cff1c
children fe24632a577b
line wrap: on
line diff
--- a/wav.c	Thu Oct 28 10:12:57 2004 +0000
+++ b/wav.c	Sat Nov 06 19:11:34 2004 +0000
@@ -71,7 +71,7 @@
     }
     
     if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3) {
-        blkalign = 1;
+        blkalign = enc->frame_size; //this is wrong, but seems many demuxers dont work if this is set correctly
         //blkalign = 144 * enc->bit_rate/enc->sample_rate;
     } else if (enc->block_align != 0) { /* specified by the codec */
         blkalign = enc->block_align;