diff options
author | Roger Pau Monné <roger.pau@entel.upc.edu> | 2011-04-16 10:09:15 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-26 07:42:13 +0200 |
commit | 10d39405fa82473367e1ba1ed3c4ecbeca2a7986 (patch) | |
tree | 39b47229245487cee4bcff9af1211100437ac915 /libavfilter/vsrc_buffer.c | |
parent | 7a11c82fb760619d0e17ca234381b50d6c675cc0 (diff) | |
download | ffmpeg-streaming-10d39405fa82473367e1ba1ed3c4ecbeca2a7986.zip ffmpeg-streaming-10d39405fa82473367e1ba1ed3c4ecbeca2a7986.tar.gz |
lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/vsrc_buffer.c')
-rw-r--r-- | libavfilter/vsrc_buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index dea41de..6567279 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -54,6 +54,8 @@ int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize)); c->frame.interlaced_frame= frame->interlaced_frame; c->frame.top_field_first = frame->top_field_first; + c->frame.key_frame = frame->key_frame; + c->frame.pict_type = frame->pict_type; c->pts = pts; c->pixel_aspect = pixel_aspect; c->has_frame = 1; @@ -133,6 +135,8 @@ static int request_frame(AVFilterLink *link) 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); |