lavc: add format field to AVFrame
The format is a per-frame property, having it in AVFrame simplify the operation of extraction of that information, since avoids the need to access the codec/stream context.
This commit is contained in:
@@ -104,6 +104,7 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame,
|
||||
memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize));
|
||||
c->frame.width = frame->width;
|
||||
c->frame.height = frame->height;
|
||||
c->frame.format = frame->format;
|
||||
c->frame.interlaced_frame= frame->interlaced_frame;
|
||||
c->frame.top_field_first = frame->top_field_first;
|
||||
c->frame.key_frame = frame->key_frame;
|
||||
|
||||
Reference in New Issue
Block a user