xsubdec: print frame size when too small
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 23 May 2012 16:37:55 +0000 (18:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 May 2012 17:04:23 +0000 (19:04 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/xsubdec.c

index 5e0e59f..7169486 100644 (file)
@@ -60,7 +60,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
 
     // check that at least header fits
     if (buf_size < 27 + 7 * 2 + 4 * 3) {
-        av_log(avctx, AV_LOG_ERROR, "coded frame too small\n");
+        av_log(avctx, AV_LOG_ERROR, "coded frame size %d too small\n", buf_size);
         return -1;
     }