]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_scale_cuda: reset frame size after acquiring from hwframe
authorJosh Allmann <joshua.allmann@gmail.com>
Fri, 24 May 2019 16:39:47 +0000 (09:39 -0700)
committerTimo Rothenpieler <timo@rothenpieler.org>
Fri, 24 May 2019 17:03:34 +0000 (19:03 +0200)
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
libavfilter/vf_scale_cuda.c

index b7cdb81081ff4a34e7b641c533fc23a5714fed61..0a73ea142287c280bf92f7c297173cbc1c77812b 100644 (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;