lavc: add width and height fields to AVFrame
width and height are per-frame properties, setting these values in AVFrame simplify the operation of extraction of that information, since avoids the need to check the codec/stream context.
This commit is contained in:
parent
314374e579
commit
22333a6b19
5 changed files with 17 additions and 1 deletions
|
|
@ -102,6 +102,8 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame,
|
|||
|
||||
memcpy(c->frame.data , frame->data , sizeof(frame->data));
|
||||
memcpy(c->frame.linesize, frame->linesize, sizeof(frame->linesize));
|
||||
c->frame.width = frame->width;
|
||||
c->frame.height = frame->height;
|
||||
c->frame.interlaced_frame= frame->interlaced_frame;
|
||||
c->frame.top_field_first = frame->top_field_first;
|
||||
c->frame.key_frame = frame->key_frame;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue