cudautils: fix critical typo in gst_cuda_buffer_fallback_copy
authorCorentin Damman <c.damman@intopix.com>
Fri, 15 Apr 2022 13:19:36 +0000 (13:19 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 16 Apr 2022 02:16:22 +0000 (02:16 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2194>

subprojects/gst-plugins-bad/sys/nvcodec/gstcudautils.c

index 26422fa..d2a74d4 100644 (file)
@@ -706,7 +706,7 @@ gst_cuda_buffer_fallback_copy (GstBuffer * dst, const GstVideoInfo * dst_info,
   }
 
   /* src and dst resolutions can be different, pick min value */
-  for (i = 0; GST_VIDEO_FRAME_N_PLANES (&dst_frame); i++) {
+  for (i = 0; i < GST_VIDEO_FRAME_N_PLANES (&dst_frame); i++) {
     guint dst_width_in_bytes, src_width_in_bytes;
     guint dst_height, src_height;
     guint width_in_bytes, height;