]> git.sesse.net Git - ffmpeg/commitdiff
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 e411406d8abe4a8ec933a67826312e54473b6e62..5bca9fc1844a572485b45f2c62a39eb36c3196bc 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;
 }