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

Steven Liu lq at chinaffmpeg.org
Mon Sep 30 10:17:45 EEST 2019


Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 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);
     }
-- 
2.15.1





More information about the ffmpeg-devel mailing list