1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_scale_cuda: reset frame size after acquiring from hwframe

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
Josh Allmann 2019-05-24 09:39:47 -07:00 committed by Timo Rothenpieler
parent 5073adcc42
commit 4cfc34d9a8

View File

@ -481,6 +481,9 @@ static int cudascale_scale(AVFilterContext *ctx, AVFrame *out, AVFrame *in)
av_frame_move_ref(out, s->frame);
av_frame_move_ref(s->frame, s->tmp_frame);
s->frame->width = s->planes_out[0].width;
s->frame->height = s->planes_out[0].height;
ret = av_frame_copy_props(out, in);
if (ret < 0)
return ret;