mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 07:40:00 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user