History

Add key_frame and pict_type to AVFilterBufferRefVideo.

Roger Pau Monné committed 15 years ago

Commit 09a14161 parent d3b379b3 files · +9 −1Browse files

Showing the changes to libavfilter/vsrc_buffer.c (1 of 3 files). Show all

Unified · Split

libavfilter/vsrc_buffer.c+4−0
@@ -93,6 +93,8 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, · 92 unmodified lines
9393 memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize));
9494 c->frame.interlaced_frame= frame->interlaced_frame;
9595 c->frame.top_field_first = frame->top_field_first;
96+ c->frame.key_frame = frame->key_frame;
97+ c->frame.pict_type = frame->pict_type;
9698 c->pts = pts;
9799 c->pixel_aspect = pixel_aspect;
98100 c->has_frame = 1;
@@ -182,6 +184,8 @@ static int request_frame(AVFilterLink *link) · 83 unmodified lines
182184 picref->video->pixel_aspect = c->pixel_aspect;
183185 picref->video->interlaced = c->frame.interlaced_frame;
184186 picref->video->top_field_first = c->frame.top_field_first;
187+ picref->video->key_frame = c->frame.key_frame;
188+ picref->video->pict_type = c->frame.pict_type;
185189 avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0));
186190 avfilter_draw_slice(link, 0, link->h, 1);
187191 avfilter_end_frame(link);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t