lavfi/qsvvpp: change the output frame's width and height

Make sure the size of the output frame always matches the agreed upon
image size.

Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
This commit is contained in:
Chen,Wenbin 2022-11-28 12:43:18 +08:00 committed by Haihao Xiang
parent 7cfc3c0d26
commit 50575e24be
1 changed files with 2 additions and 3 deletions

View File

@ -487,15 +487,14 @@ static QSVFrame *query_frame(QSVVPPContext *s, AVFilterLink *outlink)
if (!out_frame->frame)
return NULL;
out_frame->frame->width = outlink->w;
out_frame->frame->height = outlink->h;
ret = map_frame_to_surface(out_frame->frame,
&out_frame->surface);
if (ret < 0)
return NULL;
}
out_frame->frame->width = outlink->w;
out_frame->frame->height = outlink->h;
out_frame->surface.Info = s->vpp_param.vpp.Out;
return out_frame;