History

lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.

Roger Pau Monné committed 15 years ago

Commit 10d39401 parent 7a11c824 files · +12 −1Browse files

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

Unified · Split

libavfilter/vsrc_buffer.c+4−0
@@ -54,6 +54,8 @@ int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, · 53 unmodified lines
5454 memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize));
5555 c->frame.interlaced_frame= frame->interlaced_frame;
5656 c->frame.top_field_first = frame->top_field_first;
57+ c->frame.key_frame = frame->key_frame;
58+ c->frame.pict_type = frame->pict_type;
5759 c->pts = pts;
5860 c->pixel_aspect = pixel_aspect;
5961 c->has_frame = 1;
@@ -133,6 +135,8 @@ static int request_frame(AVFilterLink *link) · 73 unmodified lines
133135 picref->video->pixel_aspect = c->pixel_aspect;
134136 picref->video->interlaced = c->frame.interlaced_frame;
135137 picref->video->top_field_first = c->frame.top_field_first;
138+ picref->video->key_frame = c->frame.key_frame;
139+ picref->video->pict_type = c->frame.pict_type;
136140 avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0));
137141 avfilter_draw_slice(link, 0, link->h, 1);
138142 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