aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorCédric Schieli <cschieli@gmail.com>2009-04-14 08:48:47 +0000
committerCédric Schieli <cschieli@gmail.com>2009-04-14 08:48:47 +0000
commitfe479c9d63f0743fa064ac2a5c019284ba88277a (patch)
tree51ed3a57b256f6a4667875033a817f60d798fe42 /libavfilter/avfilter.c
parent184fcc60b7ce5b5c240ba9e0511912d9911dca3b (diff)
downloadffmpeg-fe479c9d63f0743fa064ac2a5c019284ba88277a.tar.gz
Also copy pixel_aspect when copying the picref in avfilter_start_frame.
This avoids a division by zero in '[in]fifo,scale[out]' Originally committed as revision 18507 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 349d0af0ee..5739b765ac 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -221,6 +221,7 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterPicRef *picref)
link->cur_pic = avfilter_default_get_video_buffer(link, dst->min_perms);
link->srcpic = picref;
link->cur_pic->pts = link->srcpic->pts;
+ link->cur_pic->pixel_aspect = link->srcpic->pixel_aspect;
}
else
link->cur_pic = picref;