[FFmpeg-cvslog] avcodec/pngdec: print the actual number of bytes left in the error case

Michael Niedermayer git at videolan.org
Thu Sep 11 16:54:32 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Sep 11 16:15:02 2014 +0200| [a6153bde3dee9243a72f3093bc1f3f63beb8eb62] | committer: Michael Niedermayer

avcodec/pngdec: print the actual number of bytes left in the error case

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

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

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

diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 92dc25a..da91aab 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -559,7 +559,7 @@ static int decode_frame(AVCodecContext *avctx,
     }
     for (;;) {
         if (bytestream2_get_bytes_left(&s->gb) <= 0) {
-            av_log(avctx, AV_LOG_ERROR, "No bytes left\n");
+            av_log(avctx, AV_LOG_ERROR, "%d bytes left\n", bytestream2_get_bytes_left(&s->gb));
             if (   s->state & PNG_ALLIMAGE
                 && avctx->strict_std_compliance <= FF_COMPLIANCE_NORMAL)
                 goto exit_loop;



More information about the ffmpeg-cvslog mailing list