From 1c9e340d35351858907f11c45b2691db708f3903 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sun, 1 May 2011 14:47:05 +0200 Subject: lavfi: add avfilter_copy_frame_props() avfilter_copy_frame_props() avoids code duplication and increases robustness. --- avplay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'avplay.c') diff --git a/avplay.c b/avplay.c index bf246f2382..c21701081d 100644 --- a/avplay.c +++ b/avplay.c @@ -1649,9 +1649,9 @@ static int input_request_frame(AVFilterLink *link) } av_free_packet(&pkt); + avfilter_copy_frame_props(picref, priv->frame); picref->pts = pts; - picref->pos = pkt.pos; - picref->video->pixel_aspect = priv->frame->sample_aspect_ratio; + avfilter_start_frame(link, picref); avfilter_draw_slice(link, 0, link->h, 1); avfilter_end_frame(link); -- cgit v1.2.3