[FFmpeg-cvslog] j2kdec: debug markers support.
Michael Niedermayer
git at videolan.org
Thu Oct 27 20:45:49 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May 3 03:33:49 2011 +0200| [abe17c69631c0b205f156d738294328b408dcc54] | committer: Michael Niedermayer
j2kdec: debug markers support.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=abe17c69631c0b205f156d738294328b408dcc54
---
libavcodec/j2kdec.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 01a1e2e..15e4450 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){
More information about the ffmpeg-cvslog
mailing list