changeset 9648:62d00a9c3824 libavcodec

Bugfix for bug introduced in the multichannel cook patchset.
author banan
date Fri, 15 May 2009 16:25:54 +0000
parents d0fe5dc427f0
children 2d4718adf588
files cook.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cook.c	Fri May 15 15:34:22 2009 +0000
+++ b/cook.c	Fri May 15 16:25:54 2009 +0000
@@ -1141,9 +1141,10 @@
                 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: