j2kdec: debug markers support.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-05-03 03:33:49 +02:00
parent c2553a5585
commit abe17c6963
1 changed files with 2 additions and 0 deletions

View File

@ -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){