[FFmpeg-cvslog] avcodec/mpegvideo_enc: add logging context to log

Steven Liu git at videolan.org
Tue Oct 8 08:48:23 EEST 2019


ffmpeg | branch: master | Steven Liu <lq at chinaffmpeg.org> | Mon Sep 30 15:03:04 2019 +0800| [76ab5ebbeea6c35e3901dfa077cd24a0db3fe8d8] | committer: Steven Liu

avcodec/mpegvideo_enc: add logging context to log

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
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=76ab5ebbeea6c35e3901dfa077cd24a0db3fe8d8
---

 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);
     }



More information about the ffmpeg-cvslog mailing list