diff options
author | Chen,Wenbin <wenbin.chen@intel.com> | 2022-11-28 12:43:18 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2022-12-01 09:39:32 +0800 |
commit | 50575e24bef05ccc1e42f382a9f96896d49e9457 (patch) | |
tree | 56f5d709424466d629475a9d7583809d0e15dd33 /libavfilter/qsvvpp.c | |
parent | 7cfc3c0d260a97740b4c2833e846d939440bdd58 (diff) | |
download | ffmpeg-50575e24bef05ccc1e42f382a9f96896d49e9457.tar.gz |
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>
Diffstat (limited to 'libavfilter/qsvvpp.c')
-rw-r--r-- | libavfilter/qsvvpp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 8428ee89ab..bf719b2a29 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -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; |