From cc80caff52a3a20d2ef4285d06263e542e3ddf46 Mon Sep 17 00:00:00 2001 From: "S.N. Hemanth Meenakshisundaram" Date: Wed, 11 Aug 2010 11:06:04 +0000 Subject: Separate video specific BufferRef properties into VideoProps. Define a new struct AVFilterBufferRefVideoProps and add a type field to AVFilterBufferRef. Video specific properties in AVFilterBufferRefVideoProps are now referred to by *video pointer in AVFilterBufferRef. Patch by S.N. Hemanth Meenakshisundaram smeenaks->ucsd.edu. Originally committed as revision 24763 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavfilter/vf_scale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavfilter/vf_scale.c') diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index c45443fee2..5baf99be88 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -156,9 +156,9 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) outlink->out_buf = outpicref; - av_reduce(&outpicref->pixel_aspect.num, &outpicref->pixel_aspect.den, - (int64_t)picref->pixel_aspect.num * outlink->h * link->w, - (int64_t)picref->pixel_aspect.den * outlink->w * link->h, + av_reduce(&outpicref->video->pixel_aspect.num, &outpicref->video->pixel_aspect.den, + (int64_t)picref->video->pixel_aspect.num * outlink->h * link->w, + (int64_t)picref->video->pixel_aspect.den * outlink->w * link->h, INT_MAX); scale->slice_y = 0; -- cgit v1.2.3