[FFmpeg-devel] [PATCH v1 10/14] avcodec/pngdec: add logging context to log

Paul B Mahol onemda at gmail.com
Mon Sep 30 11:24:39 EEST 2019


lgtm

On 9/30/19, Steven Liu <lq at chinaffmpeg.org> wrote:
> Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
> ---
>  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;
>          }
> --
> 2.15.1
>
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list