va: Fix a typo in video format mapping.
authorHe Junyan <junyan.he@intel.com>
Wed, 16 Jun 2021 08:32:30 +0000 (16:32 +0800)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 16 Jun 2021 14:12:59 +0000 (14:12 +0000)
GST_VIDEO_FORMAT_Y412_LE is a 4:4:4 format and so should be mapped
to VA_RT_YUV444_12 rt format.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2332>

sys/va/gstvavideoformat.c

index 6b4c1a9..3bb6ec2 100644 (file)
@@ -85,7 +85,7 @@ static struct FormatMap
   /* F (????, Y216), */
   G (Y410, ('Y', '4', '1', '0'), YUV444_10, NSB, 32),
   G (Y212_LE, ('Y', '2', '1', '2'), YUV422_12, NSB, 32),
-  G (Y412_LE, ('Y', '4', '1', '2'), YUV422_12, NSB, 32),
+  G (Y412_LE, ('Y', '4', '1', '2'), YUV444_12, NSB, 32),
   /* F (????, Y416), */
   /* F (????, YV16), */
   G (P010_10LE, ('P', '0', '1', '0'), YUV420_10, NSB, 24),