summaryrefslogtreecommitdiff
path: root/libavcodec/aacdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-07 02:25:32 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-07 03:09:50 +0100
commit2daae445c09a73dccfa7e72f465ebfc18dc1bfe3 (patch)
tree2c64a610153fa8cbcce4b8aefc3bd11069ea2fc3 /libavcodec/aacdec.c
parentb385c4c6a316f798b6a14418f09e545cda7fef7f (diff)
avcodec/aacdec: print extension type when startcode debugging is on
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r--libavcodec/aacdec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 00d37fee5d..173597dec8 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -2291,7 +2291,12 @@ static int decode_extension_payload(AACContext *ac, GetBitContext *gb, int cnt,
{
int crc_flag = 0;
int res = cnt;
- switch (get_bits(gb, 4)) { // extension type
+ int type = get_bits(gb, 4);
+
+ if (ac->avctx->debug & FF_DEBUG_STARTCODE)
+ av_log(ac->avctx, AV_LOG_DEBUG, "extension type: %d len:%d\n", type, cnt);
+
+ switch (type) { // extension type
case EXT_SBR_DATA_CRC:
crc_flag++;
case EXT_SBR_DATA: