diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-11-06 19:11:34 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-11-06 19:11:34 +0000 |
commit | 359fa0febc878066cbb31102e1ee709374054015 (patch) | |
tree | 6162497090306a8e6d99ebff0b19a15aae119d11 /libavformat/wav.c | |
parent | 70122f2902c815e395be44bc4097cbf6164ef3f5 (diff) | |
download | ffmpeg-streaming-359fa0febc878066cbb31102e1ee709374054015.zip ffmpeg-streaming-359fa0febc878066cbb31102e1ee709374054015.tar.gz |
cbr audio muxing fix
Originally committed as revision 3661 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wav.c')
-rw-r--r-- | libavformat/wav.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c index 4528c83..3497126 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -71,7 +71,7 @@ int put_wav_header(ByteIOContext *pb, AVCodecContext *enc) } 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; |