Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Pau Monné <roger.pau@entel.upc.edu>2011-04-16 12:09:15 +0400
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-04-16 12:09:15 +0400
commit09a1416db78f49fb3a39cdf5a4bd0f5c5f849ce0 (patch)
treec792cb3d3b70186fa4cf03537affaf572f1bab4b /libavfilter/vsrc_buffer.c
parentd3b379b95b0da8e4d612a9a1987ba6fd8f2bd8bf (diff)
Add key_frame and pict_type to AVFilterBufferRefVideo.
Diffstat (limited to 'libavfilter/vsrc_buffer.c')
-rw-r--r--libavfilter/vsrc_buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index d02b13a4b8..54ee77788d 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -93,6 +93,8 @@ int av_vsrc_buffer_add_frame2(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;
@@ -182,6 +184,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);