diff options
author | Benjamin Larsson <banan@ludd.ltu.se> | 2009-05-15 16:25:54 +0000 |
---|---|---|
committer | Benjamin Larsson <banan@ludd.ltu.se> | 2009-05-15 16:25:54 +0000 |
commit | e5cd2d3dca3bbba1961ee373fde24c5e112b0d80 (patch) | |
tree | 69b34e8fe8113ac754a1ee2fffdc9e74a52094d3 /libavcodec/cook.c | |
parent | 13bd2044d3887b7f0008168c5173a274b5247488 (diff) | |
download | ffmpeg-e5cd2d3dca3bbba1961ee373fde24c5e112b0d80.tar.gz |
Bugfix for bug introduced in the multichannel cook patchset.
Originally committed as revision 18842 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r-- | libavcodec/cook.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index a33222bf0e..fa9dc2b7ce 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -1141,9 +1141,10 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) av_log(avctx,AV_LOG_DEBUG,"MONO\n"); break; case STEREO: - if (q->nb_channels != 1) + if (q->nb_channels != 1) { q->subpacket[s].bits_per_subpdiv = 1; - q->subpacket[s].num_channels = 2; + q->subpacket[s].num_channels = 2; + } av_log(avctx,AV_LOG_DEBUG,"STEREO\n"); break; case JOINT_STEREO: |