msdkenc: modify the way of copying system memory to msdk surface
authorTong Wu <tong1.wu@intel.com>
Fri, 26 Aug 2022 08:19:33 +0000 (16:19 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 11 Nov 2022 06:02:28 +0000 (06:02 +0000)
commitf25f528120e60545cc35a13e2b4eafc3eacc52a2
tree26b21eac0b010184ad950e195d2d8c75d5dfa4bd
parentf6e207eb1b129a8051a53bafe1b74295e22fb413
msdkenc: modify the way of copying system memory to msdk surface

Replace video_copy with memcpy to fix the issue when the sizes of the
src frame and dst frame don't match. Moreover, for Windows, you have to
do the copy first and call gst_msdk_import_to_msdk_surface later.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3231>
subprojects/gst-plugins-bad/sys/msdk/gstmsdkenc.c