[FFmpeg-devel] [PATCH] aacdec: update debug code to always print the processed data.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon Apr 9 00:18:28 CEST 2012
When decoding LATM, this function will not process extradata
but a different buffer.
It seems this was forgotten to update when LATM support
was added.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
libavcodec/aacdec.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c
index 58f846e..4348d25 100644
--- a/libavcodec/aacdec.c
+++ b/libavcodec/aacdec.c
@@ -683,9 +683,9 @@ static int decode_audio_specific_config(AACContext *ac,
GetBitContext gb;
int i;
- av_dlog(avctx, "extradata size %d\n", avctx->extradata_size);
- for (i = 0; i < avctx->extradata_size; i++)
- av_dlog(avctx, "%02x ", avctx->extradata[i]);
+ av_dlog(avctx, "audio specific config size %d\n", bit_size >> 3);
+ for (i = 0; i < bit_size >> 3; i++)
+ av_dlog(avctx, "%02x ", data[i]);
av_dlog(avctx, "\n");
init_get_bits(&gb, data, bit_size);
--
1.7.9.5
More information about the ffmpeg-devel
mailing list