mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
7cfc3c0d26
commit
50575e24be
|
@ -487,15 +487,14 @@ static QSVFrame *query_frame(QSVVPPContext *s, AVFilterLink *outlink)
|
||||||
if (!out_frame->frame)
|
if (!out_frame->frame)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
out_frame->frame->width = outlink->w;
|
|
||||||
out_frame->frame->height = outlink->h;
|
|
||||||
|
|
||||||
ret = map_frame_to_surface(out_frame->frame,
|
ret = map_frame_to_surface(out_frame->frame,
|
||||||
&out_frame->surface);
|
&out_frame->surface);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out_frame->frame->width = outlink->w;
|
||||||
|
out_frame->frame->height = outlink->h;
|
||||||
out_frame->surface.Info = s->vpp_param.vpp.Out;
|
out_frame->surface.Info = s->vpp_param.vpp.Out;
|
||||||
|
|
||||||
return out_frame;
|
return out_frame;
|
||||||
|
|
Loading…
Reference in New Issue