From 76ab5ebbeea6c35e3901dfa077cd24a0db3fe8d8 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Mon, 30 Sep 2019 15:03:04 +0800 Subject: [PATCH] avcodec/mpegvideo_enc: add logging context to log Reviewed-by: Michael Niedermayer Reviewed-by: Paul B Mahol Signed-off-by: Steven Liu --- libavcodec/mpegvideo_enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index ae3b131229..f12e603215 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -165,7 +165,7 @@ void ff_convert_matrix(MpegEncContext *s, int (*qmat)[64], } } if (shift) { - av_log(NULL, AV_LOG_INFO, + av_log(s->avctx, AV_LOG_INFO, "Warning, QMAT_SHIFT is larger than %d, overflows possible\n", QMAT_SHIFT - shift); }