mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-17 03:28:27 +08:00
Separate video specific BufferRef properties into VideoProps.
Define a new struct AVFilterBufferRefVideoProps and add a type field to AVFilterBufferRef. Video specific properties in AVFilterBufferRefVideoProps are now referred to by *video pointer in AVFilterBufferRef. Patch by S.N. Hemanth Meenakshisundaram smeenaks->ucsd.edu. Originally committed as revision 24763 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Stefano Sabatini

parent
fd7b11d027
commit
cc80caff52
@ -122,10 +122,10 @@ static int request_frame(AVFilterLink *link)
|
||||
av_picture_copy((AVPicture *)&picref->data, (AVPicture *)&c->frame,
|
||||
picref->format, link->w, link->h);
|
||||
|
||||
picref->pts = c->pts;
|
||||
picref->pixel_aspect = c->pixel_aspect;
|
||||
picref->interlaced = c->frame.interlaced_frame;
|
||||
picref->top_field_first = c->frame.top_field_first;
|
||||
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;
|
||||
avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0));
|
||||
avfilter_draw_slice(link, 0, link->h, 1);
|
||||
avfilter_end_frame(link);
|
||||
|
Reference in New Issue
Block a user