aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2016-06-08 21:01:04 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2016-06-08 21:01:04 +0100
commita04ae469e748c88ff9f39a9cfae33129badf9894 (patch)
tree426af247da7d053ce627aacf10ca2ab36613ac00
parent2991d935203ed1a193d5624bf88655f7b1abe5ea (diff)
downloadffmpeg-a04ae469e748c88ff9f39a9cfae33129badf9894.tar.gz
aacsbr: reduce element type mismatch warning severity
All HE-AAC samples with an LFE channel make this warning get spammed on every frame. Turning off SBR for LFE channels makes sense (since it has much less coefficients than normal channels do), so this error print is of no value in this case. It makes sense to keep the error in other cases, hence why it's still around, degraded to warning severity since the decoder will still attempt to decode without SBR. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
-rw-r--r--libavcodec/aacsbr_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacsbr_template.c b/libavcodec/aacsbr_template.c
index 733e619b78..511054276a 100644
--- a/libavcodec/aacsbr_template.c
+++ b/libavcodec/aacsbr_template.c
@@ -1473,7 +1473,7 @@ void AAC_RENAME(ff_sbr_apply)(AACContext *ac, SpectralBandReplication *sbr, int
int err;
if (id_aac != sbr->id_aac) {
- av_log(ac->avctx, AV_LOG_ERROR,
+ av_log(ac->avctx, id_aac == TYPE_LFE ? AV_LOG_VERBOSE : AV_LOG_WARNING,
"element type mismatch %d != %d\n", id_aac, sbr->id_aac);
sbr_turnoff(sbr);
}