[FFmpeg-devel,v2,11/14] avfilter/vf_crop: add logging context to log

Submitted by Steven Liu on Oct. 2, 2019, 6:58 a.m.

Details

Message ID 20191002065815.30333-11-lq@chinaffmpeg.org
State New
Headers show

Commit Message

Steven Liu Oct. 2, 2019, 6:58 a.m.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
---
 libavfilter/vf_crop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 9fca7a7309..d6b4feb513 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -244,7 +244,7 @@  static int config_input(AVFilterLink *link)
     return 0;
 
 fail_expr:
-    av_log(NULL, AV_LOG_ERROR, "Error when evaluating the expression '%s'\n", expr);
+    av_log(ctx, AV_LOG_ERROR, "Error when evaluating the expression '%s'\n", expr);
     return ret;
 }