avcodec/mjpegdec: Print the number of bits in the unsupported pixel format error
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Nov 2014 00:34:32 +0000 (01:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 25 Nov 2014 00:34:32 +0000 (01:34 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mjpegdec.c

index 982829b..e817c0d 100644 (file)
@@ -550,7 +550,7 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
         break;
     default:
 unk_pixfmt:
-        av_log(s->avctx, AV_LOG_ERROR, "Unhandled pixel format 0x%x\n", pix_fmt_id);
+        av_log(s->avctx, AV_LOG_ERROR, "Unhandled pixel format 0x%x bits:%d\n", pix_fmt_id, s->bits);
         s->upscale_h = s->upscale_v = 0;
         return AVERROR_PATCHWELCOME;
     }