diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-03-26 13:47:29 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-03-29 10:19:03 +0200 |
commit | ae9297097696f3d06417a6e8a5368d5f38a6edb4 (patch) | |
tree | 731784efc2e0054d885c4c1f54efe81b930a74f4 /libavcodec/aac_ac3_parser.c | |
parent | e5819fa62930966e6fb905cef21c985b91631d87 (diff) | |
download | ffmpeg-ae9297097696f3d06417a6e8a5368d5f38a6edb4.tar.gz |
avcodec/eac3: add support for dependent stream
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/aac_ac3_parser.c')
-rw-r--r-- | libavcodec/aac_ac3_parser.c | 9 |
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; |