aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegdec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-02-29 19:47:49 +0100
committerDiego Biurrun <diego@biurrun.de>2012-03-01 23:11:15 +0100
commit1c4717be4f37e42938f1a1e6ec8c99e0142e52ba (patch)
treeaeff12f055daa3cbb62d22572d7f22bf77db6b0a /libavcodec/mjpegdec.c
parent75c553eb264ca9317fded0350684d561035a6794 (diff)
downloadffmpeg-1c4717be4f37e42938f1a1e6ec8c99e0142e52ba.tar.gz
mjpegdec: use correct variable in av_log invocation
libavcodec/mjpegdec.c:1463: warning: format ‘%x’ expects type ‘unsigned int’, but argument 5 has type ‘const uint8_t *’
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r--libavcodec/mjpegdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 47a85cb598..ea6230c3cd 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1460,7 +1460,7 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
goto the_end;
} else if (unescaped_buf_size > (1U<<29)) {
av_log(avctx, AV_LOG_ERROR, "MJPEG packet 0x%x too big (0x%x/0x%x), corrupt data?\n",
- start_code, unescaped_buf_ptr, buf_size);
+ start_code, unescaped_buf_size, buf_size);
return AVERROR_INVALIDDATA;
} else {
av_log(avctx, AV_LOG_DEBUG, "marker=%x avail_size_in_buf=%td\n",