avfilter/vf_crop: add logging context to log
authorSteven Liu <lq@chinaffmpeg.org>
Mon, 30 Sep 2019 07:08:33 +0000 (15:08 +0800)
committerSteven Liu <lq@chinaffmpeg.org>
Tue, 8 Oct 2019 05:47:34 +0000 (13:47 +0800)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavfilter/vf_crop.c

index 9fca7a7..d6b4feb 100644 (file)
@@ -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;
 }