[FFmpeg-cvslog] avcodec/pngdec: add logging context to log
Steven Liu
git at videolan.org
Tue Oct 8 08:48:27 EEST 2019
ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Mon Sep 30 15:07:19 2019 +0800| [aea36b63571e161049280ce2445a1b736702b92a] | committer: Steven Liu
avcodec/pngdec: add logging context to log
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aea36b63571e161049280ce2445a1b736702b92a
---
libavcodec/pngdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 2d6c1b218e..d37dabcc4d 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -424,7 +424,7 @@ static int png_decode_idat(PNGDecContext *s, int length)
s->zstream.next_out = s->crow_buf;
}
if (ret == Z_STREAM_END && s->zstream.avail_in > 0) {
- av_log(NULL, AV_LOG_WARNING,
+ av_log(s->avctx, AV_LOG_WARNING,
"%d undecompressed bytes left in buffer\n", s->zstream.avail_in);
return 0;
}
More information about the ffmpeg-cvslog
mailing list