summaryrefslogtreecommitdiff
path: root/libavcodec/aac_ac3_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/aac_ac3_parser.c')
-rw-r--r--libavcodec/aac_ac3_parser.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c
index 4e834b4424..019074b0dd 100644
--- a/libavcodec/aac_ac3_parser.c
+++ b/libavcodec/aac_ac3_parser.c
@@ -86,13 +86,16 @@ get_next:
the frame). */
if (avctx->codec_id != AV_CODEC_ID_AAC) {
avctx->sample_rate = s->sample_rate;
- avctx->channels = s->channels;
- avctx->channel_layout = s->channel_layout;
+ if (avctx->codec_id != AV_CODEC_ID_EAC3) {
+ avctx->channels = s->channels;
+ avctx->channel_layout = s->channel_layout;
+ }
s1->duration = s->samples;
avctx->audio_service_type = s->service_type;
}
- avctx->bit_rate = s->bit_rate;
+ if (avctx->codec_id != AV_CODEC_ID_EAC3)
+ avctx->bit_rate = s->bit_rate;
}
return i;