[FFmpeg-cvslog] xsubdec: print frame size when too small

Michael Niedermayer git at videolan.org
Wed May 23 19:52:42 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 23 18:37:55 2012 +0200| [3cb83b225ef1f123cc10c42bb2dc4b665aace320] | committer: Michael Niedermayer

xsubdec: print frame size when too small

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3cb83b225ef1f123cc10c42bb2dc4b665aace320
---

 libavcodec/xsubdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/xsubdec.c b/libavcodec/xsubdec.c
index 5e0e59f..7169486 100644
--- a/libavcodec/xsubdec.c
+++ b/libavcodec/xsubdec.c
@@ -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;
     }
 



More information about the ffmpeg-cvslog mailing list