vf_scale: give a clue in case of invalid expression self-reference
authorStefano Sabatini <stefasab@gmail.com>
Sun, 4 Dec 2011 22:33:40 +0000 (23:33 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Tue, 6 Dec 2011 14:03:51 +0000 (15:03 +0100)
Address trac ticket #706.

libavfilter/vf_scale.c

index e411406..5bca9fc 100644 (file)
@@ -242,7 +242,9 @@ static int config_props(AVFilterLink *outlink)
 
 fail:
     av_log(NULL, AV_LOG_ERROR,
-           "Error when evaluating the expression '%s'\n", expr);
+           "Error when evaluating the expression '%s'.\n"
+           "Maybe the expression for out_w:'%s' or for out_h:'%s' is self-referencing.\n",
+           expr, scale->w_expr, scale->h_expr);
     return ret;
 }