Browse code

vf_scale: give a clue in case of invalid expression self-reference

Address trac ticket #706.

Stefano Sabatini authored on 2011/12/05 07:33:40
Showing 1 changed files
... ...
@@ -242,7 +242,9 @@ static int config_props(AVFilterLink *outlink)
242 242
 
243 243
 fail:
244 244
     av_log(NULL, AV_LOG_ERROR,
245
-           "Error when evaluating the expression '%s'\n", expr);
245
+           "Error when evaluating the expression '%s'.\n"
246
+           "Maybe the expression for out_w:'%s' or for out_h:'%s' is self-referencing.\n",
247
+           expr, scale->w_expr, scale->h_expr);
246 248
     return ret;
247 249
 }
248 250