aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-14 01:54:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-14 01:54:57 +0200
commit1f20fa2da83922cd73b090b7f336ba51e25b1fb3 (patch)
tree0096c5d6ec5c328e2301d30e4371d580e90be4e5 /libavcodec
parentb9918a7688024b178cbfa96ff30362b6eb4f611c (diff)
downloadffmpeg-1f20fa2da83922cd73b090b7f336ba51e25b1fb3.tar.gz
avcodec/aacdec: print element types when debug startcode is set
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/aacdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index ef820d261f..ed12e7dad7 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -2925,6 +2925,9 @@ static int aac_decode_frame_int(AVCodecContext *avctx, void *data,
while ((elem_type = get_bits(gb, 3)) != TYPE_END) {
elem_id = get_bits(gb, 4);
+ if (avctx->debug & FF_DEBUG_STARTCODE)
+ av_log(avctx, AV_LOG_DEBUG, "Elem type:%x id:%x\n", elem_type, elem_id);
+
if (elem_type < TYPE_DSE) {
if (!(che=get_che(ac, elem_type, elem_id))) {
av_log(ac->avctx, AV_LOG_ERROR, "channel element %d.%d is not allocated\n",