[FFmpeg-cvslog] vf_scale: give a clue in case of invalid expression self-reference

Stefano Sabatini git at videolan.org
Tue Dec 6 15:06:36 CET 2011


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sun Dec  4 23:33:40 2011 +0100| [3af5ddb24b91cfa6e2392b85ef1beafda7e85225] | committer: Stefano Sabatini

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

Address trac ticket #706.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3af5ddb24b91cfa6e2392b85ef1beafda7e85225
---

 libavfilter/vf_scale.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index e411406..5bca9fc 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -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;
 }
 



More information about the ffmpeg-cvslog mailing list