diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-01 14:47:05 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-12-25 16:18:57 +0100 |
commit | 1c9e340d35351858907f11c45b2691db708f3903 (patch) | |
tree | b707c4c421cf7fd6caa5186b405ee4662ef46ec2 /avplay.c | |
parent | 8a4a5f6ff756fdba44254015c714f173b2db6f64 (diff) | |
download | ffmpeg-1c9e340d35351858907f11c45b2691db708f3903.tar.gz |
lavfi: add avfilter_copy_frame_props()
avfilter_copy_frame_props() avoids code duplication and increases
robustness.
Diffstat (limited to 'avplay.c')
-rw-r--r-- | avplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |