ffmpeg | branch: master | Josh Allmann <joshua.allm...@gmail.com> | Fri May 24 
09:39:47 2019 -0700| [4cfc34d9a8bffe4a1dd53187a3e0f25f34023a09] | committer: 
Timo Rothenpieler

avfilter/vf_scale_cuda: reset frame size after acquiring from hwframe

Signed-off-by: Timo Rothenpieler <t...@rothenpieler.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4cfc34d9a8bffe4a1dd53187a3e0f25f34023a09
---

 libavfilter/vf_scale_cuda.c | 3 +++
 1 file changed, 3 insertions(+)

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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to