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 /libavfilter/vsrc_buffer.c | |
parent | 8a4a5f6ff756fdba44254015c714f173b2db6f64 (diff) | |
download | ffmpeg-streaming-1c9e340d35351858907f11c45b2691db708f3903.zip ffmpeg-streaming-1c9e340d35351858907f11c45b2691db708f3903.tar.gz |
lavfi: add avfilter_copy_frame_props()
avfilter_copy_frame_props() avoids code duplication and increases
robustness.
Diffstat (limited to 'libavfilter/vsrc_buffer.c')
-rw-r--r-- | libavfilter/vsrc_buffer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index 1f0233e..982fed5 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -131,12 +131,9 @@ static int request_frame(AVFilterLink *link) c->frame.data, c->frame.linesize, picref->format, link->w, link->h); + avfilter_copy_frame_props(picref, &c->frame); picref->pts = c->pts; picref->video->pixel_aspect = c->pixel_aspect; - picref->video->interlaced = c->frame.interlaced_frame; - picref->video->top_field_first = c->frame.top_field_first; - picref->video->key_frame = c->frame.key_frame; - picref->video->pict_type = c->frame.pict_type; avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0)); avfilter_draw_slice(link, 0, link->h, 1); avfilter_end_frame(link); |