Commit 4cfc34d9 authored by Josh Allmann's avatar Josh Allmann Committed by Timo Rothenpieler

avfilter/vf_scale_cuda: reset frame size after acquiring from hwframe

Signed-off-by: 's avatarTimo Rothenpieler <timo@rothenpieler.org>
parent 5073adcc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment