aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/j2kdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-03 03:33:49 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-27 20:43:27 +0200
commitabe17c69631c0b205f156d738294328b408dcc54 (patch)
treeb34e6ae6eb9841acc9ac1cc87bc5a8181320f861 /libavcodec/j2kdec.c
parentc2553a5585c381971eca55e9e008cf4caee919fe (diff)
downloadffmpeg-abe17c69631c0b205f156d738294328b408dcc54.tar.gz
j2kdec: debug markers support.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/j2kdec.c')
-rw-r--r--libavcodec/j2kdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 01a1e2e399..15e4450251 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -910,6 +910,8 @@ static int decode_codestream(J2kDecoderContext *s)
}
marker = bytestream_get_be16(&s->buf);
+ if(s->avctx->debug & FF_DEBUG_STARTCODE)
+ av_log(s->avctx, AV_LOG_DEBUG, "marker 0x%.4X at pos 0x%x\n", marker, s->buf - s->buf_start - 4);
oldbuf = s->buf;
if (marker == J2K_SOD){