avcodec/videotoolbox: add logging context to log
authorSteven Liu <lq@chinaffmpeg.org>
Mon, 30 Sep 2019 07:04:41 +0000 (15:04 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 8 Oct 2019 05:47:25 +0000 (13:47 +0800)
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavcodec/videotoolbox.c

index e9b3370..8773de3 100644 (file)
@@ -617,7 +617,7 @@ static void videotoolbox_decoder_callback(void *opaque,
     }
 
     if (!image_buffer) {
-        av_log(NULL, AV_LOG_DEBUG, "vt decoder cb: output image buffer is null\n");
+        av_log(avctx, AV_LOG_DEBUG, "vt decoder cb: output image buffer is null\n");
         return;
     }