diff mbox

[FFmpeg-devel,v1,09/14] avcodec/videotoolbox: add logging context to log

Message ID 20190930071751.5919-9-lq@chinaffmpeg.org
State Accepted
Commit 4aa391388a67fb636e8127924274b00ec380e245
Headers show

Commit Message

Liu Steven Sept. 30, 2019, 7:17 a.m. UTC
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavcodec/videotoolbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavcodec/videotoolbox.c b/libavcodec/videotoolbox.c
index e9b3370169..8773de3393 100644
--- a/libavcodec/videotoolbox.c
+++ b/libavcodec/videotoolbox.c
@@ -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;
     }