Fixes #7372
Unified · Split
| @@ -89,7 +89,7 @@ get_next: · 88 unmodified lines | |||
| 89 | the frame). */ | 89 | the frame). */ |
| 90 | if (avctx->codec_id != AV_CODEC_ID_AAC) { | 90 | if (avctx->codec_id != AV_CODEC_ID_AAC) { |
| 91 | avctx->sample_rate = s->sample_rate; | 91 | avctx->sample_rate = s->sample_rate; |
| 92 | if (avctx->codec_id != AV_CODEC_ID_EAC3) { | 92 | if (!CONFIG_EAC3_DECODER || avctx->codec_id != AV_CODEC_ID_EAC3) { |
| 93 | avctx->channels = s->channels; | 93 | avctx->channels = s->channels; |
| 94 | avctx->channel_layout = s->channel_layout; | 94 | avctx->channel_layout = s->channel_layout; |
| 95 | } | 95 | } |
| @@ -99,7 +99,7 @@ get_next: · 3 unmodified lines | |||
| 99 | 99 | ||
| 100 | /* Calculate the average bit rate */ | 100 | /* Calculate the average bit rate */ |
| 101 | s->frame_number++; | 101 | s->frame_number++; |
| 102 | if (avctx->codec_id != AV_CODEC_ID_EAC3) { | 102 | if (!CONFIG_EAC3_DECODER || avctx->codec_id != AV_CODEC_ID_EAC3) { |
| 103 | avctx->bit_rate += | 103 | avctx->bit_rate += |
| 104 | (s->bit_rate - avctx->bit_rate) / s->frame_number; | 104 | (s->bit_rate - avctx->bit_rate) / s->frame_number; |
| 105 | } | 105 | } |