]> granicus.if.org Git - libx264/commitdiff
Fix high bit depth deinterleave of YUYV or UYVY master
authorAnton Mitrofanov <BugMaster@narod.ru>
Sat, 28 Jan 2023 20:03:35 +0000 (23:03 +0300)
committerAnton Mitrofanov <bugmaster@narod.ru>
Sat, 28 Jan 2023 22:11:33 +0000 (22:11 +0000)
common/frame.c

index 716876befbaa5ea351a1b979808d9ad686c401ba..e282c8f549810928799b8d43b53806bd9c0800d4 100644 (file)
@@ -413,7 +413,7 @@ int x264_frame_copy_picture( x264_t *h, x264_frame_t *dst, x264_picture_t *src )
     {
         int p = i_csp == X264_CSP_UYVY;
         h->mc.plane_copy_deinterleave_yuyv( dst->plane[p], dst->i_stride[p], dst->plane[p^1], dst->i_stride[p^1],
-                                            (pixel*)src->img.plane[0], src->img.i_stride[0], h->param.i_width, h->param.i_height );
+                                            (pixel*)src->img.plane[0], src->img.i_stride[0]/SIZEOF_PIXEL, h->param.i_width, h->param.i_height );
     }
     else if( i_csp == X264_CSP_V210 )
     {