msdkvpp: modify the way of copying system memory to msdk surface
authorTong Wu <tong1.wu@intel.com>
Wed, 7 Sep 2022 07:29:37 +0000 (15:29 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 11 Nov 2022 06:02:28 +0000 (06:02 +0000)
commit7becf3522126648c872752b6e698d8334f562898
tree0357fe0d1fdde5b9c3abdaea39317c613ac01747
parent9a6dd525f73b3e46af6bf3d22f272cd2ea31435e
msdkvpp: 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/gstmsdkvpp.c