aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
authorBenjamin Larsson <banan@ludd.ltu.se>2009-05-15 16:25:54 +0000
committerBenjamin Larsson <banan@ludd.ltu.se>2009-05-15 16:25:54 +0000
commite5cd2d3dca3bbba1961ee373fde24c5e112b0d80 (patch)
tree69b34e8fe8113ac754a1ee2fffdc9e74a52094d3 /libavcodec/cook.c
parent13bd2044d3887b7f0008168c5173a274b5247488 (diff)
downloadffmpeg-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.c5
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: