summaryrefslogtreecommitdiff
path: root/libavfilter/vf_scale_cuda.c
diff options
context:
space:
mode:
authorJosh Allmann <joshua.allmann@gmail.com>2019-05-24 09:39:47 -0700
committerTimo Rothenpieler <timo@rothenpieler.org>2019-05-24 19:03:34 +0200
commit4cfc34d9a8bffe4a1dd53187a3e0f25f34023a09 (patch)
tree1529dee71f153a23c4f2908c05ae51eac9787336 /libavfilter/vf_scale_cuda.c
parent5073adcc42d79b2691c564f865bea11023dec53d (diff)
avfilter/vf_scale_cuda: reset frame size after acquiring from hwframe
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavfilter/vf_scale_cuda.c')
-rw-r--r--libavfilter/vf_scale_cuda.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_scale_cuda.c b/libavfilter/vf_scale_cuda.c
index b7cdb81081..0a73ea1422 100644
--- a/libavfilter/vf_scale_cuda.c
+++ b/libavfilter/vf_scale_cuda.c
@@ -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;