mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-15 02:19:25 +00:00
Only ask once in the code for a TrueHD sample with strange channel layout.
This commit is contained in:
parent
d3f126df4b
commit
9b53bb8b3b
@ -326,10 +326,6 @@ static int mlp_parse(AVCodecParserContext *s,
|
|||||||
avctx->channels = truehd_channels(mh.channels_thd_stream1);
|
avctx->channels = truehd_channels(mh.channels_thd_stream1);
|
||||||
avctx->channel_layout = ff_truehd_layout(mh.channels_thd_stream1);
|
avctx->channel_layout = ff_truehd_layout(mh.channels_thd_stream1);
|
||||||
}
|
}
|
||||||
if (av_get_channel_layout_nb_channels(avctx->channel_layout) != avctx->channels) {
|
|
||||||
avctx->channel_layout = 0;
|
|
||||||
av_log_ask_for_sample(avctx, "Unknown channel layout.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mh.is_vbr) /* Stream is CBR */
|
if (!mh.is_vbr) /* Stream is CBR */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user