[FFmpeg-cvslog] lavfi/scale: remove usage of link->cur_buf.

Clément Bœsch git at videolan.org
Wed Dec 26 21:33:03 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Wed Dec 26 20:00:10 2012 +0100| [3b870f973ec1368441b2967c8945f2a22319d066] | committer: Clément Bœsch

lavfi/scale: remove usage of link->cur_buf.

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

 libavfilter/vf_scale.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 71f9782..f6e79ff 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -402,7 +402,7 @@ static int filter_frame(AVFilterLink *link, AVFilterBufferRef *in)
               (int64_t)in->video->sample_aspect_ratio.den * outlink->w * link->h,
               INT_MAX);
 
-    if(scale->interlaced>0 || (scale->interlaced<0 && link->cur_buf->video->interlaced)){
+    if(scale->interlaced>0 || (scale->interlaced<0 && in->video->interlaced)){
         scale_slice(link, out, in, scale->isws[0], 0, (link->h+1)/2, 2, 0);
         scale_slice(link, out, in, scale->isws[1], 0,  link->h   /2, 2, 1);
     }else{



More information about the ffmpeg-cvslog mailing list