[FFmpeg-cvslog] lavfi/scale: allocate interlaced scalers only if needed.

Nicolas George git at videolan.org
Thu Jul 18 13:50:55 CEST 2013


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Jul 18 11:03:56 2013 +0200| [ebaf20e94b99edfa2d1fb70e68ae6eba90773a47] | committer: Nicolas George

lavfi/scale: allocate interlaced scalers only if needed.

Fix "Value 0.000000 for parameter 'srch' out of range"
error message when source or destination height is 1.

Note: since the av_opt_set_int() calls are not checked for
failure and the interlaced scalers are not actually used,
this error has no consequence apart from a frightening message
in the log.

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

 libavfilter/vf_scale.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index a71340a..c91bbaa 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -287,6 +287,8 @@ static int config_props(AVFilterLink *outlink)
 
             if ((ret = sws_init_context(*s, NULL, NULL)) < 0)
                 return ret;
+            if (!scale->interlaced)
+                break;
         }
     }
 



More information about the ffmpeg-cvslog mailing list