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
Showing the changes to libavfilter/vsrc_buffer.c (1 of 10 files). Show all
Unified · Split
| @@ -122,10 +122,10 @@ static int request_frame(AVFilterLink *link) · 121 unmodified lines | ||
| 122 | 122 | av_picture_copy((AVPicture *)&picref->data, (AVPicture *)&c->frame, |
| 123 | 123 | picref->format, link->w, link->h); |
| 124 | 124 | |
| 125 | − picref->pts = c->pts; | |
| 126 | − picref->pixel_aspect = c->pixel_aspect; | |
| 127 | − picref->interlaced = c->frame.interlaced_frame; | |
| 128 | − picref->top_field_first = c->frame.top_field_first; | |
| 125 | + picref->pts = c->pts; | |
| 126 | + picref->video->pixel_aspect = c->pixel_aspect; | |
| 127 | + picref->video->interlaced = c->frame.interlaced_frame; | |
| 128 | + picref->video->top_field_first = c->frame.top_field_first; | |
| 129 | 129 | avfilter_start_frame(link, avfilter_ref_buffer(picref, ~0)); |
| 130 | 130 | avfilter_draw_slice(link, 0, link->h, 1); |
| 131 | 131 | avfilter_end_frame(link); |