Originally committed as revision 18816 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -83,11 +83,9 @@ get_next: |
| 83 | 83 |
(avctx->codec_id == CODEC_ID_AC3 || |
| 84 | 84 |
avctx->codec_id == CODEC_ID_EAC3)))) {
|
| 85 | 85 |
avctx->channels = avctx->request_channels; |
| 86 |
- } else {
|
|
| 87 |
- if (avctx->codec_id != CODEC_ID_AAC || s->channels) {
|
|
| 86 |
+ } else if (avctx->codec_id != CODEC_ID_AAC || s->channels) {
|
|
| 88 | 87 |
avctx->channels = s->channels; |
| 89 | 88 |
avctx->channel_layout = s->channel_layout; |
| 90 |
- } |
|
| 91 | 89 |
} |
| 92 | 90 |
avctx->bit_rate = s->bit_rate; |
| 93 | 91 |
avctx->frame_size = s->samples; |