lavfi: add avfilter_copy_frame_props()

avfilter_copy_frame_props() avoids code duplication and increases
robustness.
This commit is contained in:
Stefano Sabatini
2011-05-01 14:47:05 +02:00
committed by Anton Khirnov
parent 8a4a5f6ff7
commit 1c9e340d35
5 changed files with 32 additions and 10 deletions

View File

@@ -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);