aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/aacsbr.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-04-09 21:19:30 +0200
committerAlex Converse <alex.converse@gmail.com>2015-02-03 20:32:16 -0800
commit8c1ce7787ad7af8fc321b4a145e9dc965f6d0e86 (patch)
treebb3fd55d8e3e602d98be0f0865c843182ba96d56 /libavcodec/aacsbr.c
parentd615187f74ddf3413778a8b5b7ae17255b0df88e (diff)
downloadffmpeg-8c1ce7787ad7af8fc321b4a145e9dc965f6d0e86.tar.gz
aacsbr: silence message for SBR extension "padding".
Some files contain a few additional, all-0 bits. Check for that case and don't print incorrect "not supported" message. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Alex Converse <alex.converse@gmail.com>
Diffstat (limited to 'libavcodec/aacsbr.c')
-rw-r--r--libavcodec/aacsbr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c
index 52ebe65b01..3da8a5b099 100644
--- a/libavcodec/aacsbr.c
+++ b/libavcodec/aacsbr.c
@@ -929,7 +929,9 @@ static void read_sbr_extension(AACContext *ac, SpectralBandReplication *sbr,
}
break;
default:
- avpriv_request_sample(ac->avctx, "Reserved SBR extensions");
+ // some files contain 0-padding
+ if (bs_extension_id || *num_bits_left > 16 || show_bits(gb, *num_bits_left))
+ avpriv_request_sample(ac->avctx, "Reserved SBR extensions");
skip_bits_long(gb, *num_bits_left); // bs_fill_bits
*num_bits_left = 0;
break;