Revision 3eca1e6f libavcodec/liba52.c

View differences:

libavcodec/liba52.c
186 186
                    s->channels = ac3_channels[s->flags & 7];
187 187
                    if (s->flags & A52_LFE)
188 188
                        s->channels++;
189
                        avctx->channels = s->channels;
190 189
                    if (avctx->request_channels > 0 &&
191 190
                            avctx->request_channels <= 2 &&
192 191
                            avctx->request_channels < s->channels) {
193 192
                        avctx->channels = avctx->request_channels;
193
                    } else {
194
                        avctx->channels = s->channels;
194 195
                    }
195 196
                    avctx->bit_rate = bit_rate;
196 197
                }

Also available in: Unified diff