summaryrefslogtreecommitdiff
path: root/libavcodec/mlp_parser.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-04-19 03:23:46 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-04-19 03:23:46 +0200
commit9b53bb8b3bb89ec1a0f67c34d7c5e6cdcb558b48 (patch)
tree5ad8f3105cd8e105489ae8c07341f7157880b082 /libavcodec/mlp_parser.c
parentd3f126df4bf97d464ca34b7071283f692af9f541 (diff)
downloadffmpeg-9b53bb8b3bb89ec1a0f67c34d7c5e6cdcb558b48.tar.gz
Only ask once in the code for a TrueHD sample with strange channel layout.
Diffstat (limited to 'libavcodec/mlp_parser.c')
-rw-r--r--libavcodec/mlp_parser.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/mlp_parser.c b/libavcodec/mlp_parser.c
index 834f9d406c..3b87f432ad 100644
--- a/libavcodec/mlp_parser.c
+++ b/libavcodec/mlp_parser.c
@@ -326,10 +326,6 @@ static int mlp_parse(AVCodecParserContext *s,
avctx->channels = truehd_channels(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 */