tests: mpeg2dec: Don't expect BT601 color space
authorSeungha Yang <seungha@centricular.com>
Fri, 30 Oct 2020 19:52:14 +0000 (04:52 +0900)
committerSeungha Yang <seungha@centricular.com>
Mon, 2 Nov 2020 11:34:25 +0000 (20:34 +0900)
If it's required, mpeg2dec should set it explicitly.

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

tests/check/elements/mpeg2dec.c

index 288a4d35b210383bd695118725fb39cbd6a06983..1c8030fd98f1daf8e7de7d727598ea5b95379f8a 100644 (file)
@@ -1789,7 +1789,7 @@ GST_START_TEST (test_decode_stream1)
   GST_VIDEO_INFO_FPS_D (&info) = 1;
   GST_VIDEO_INFO_CHROMA_SITE (&info) = GST_VIDEO_CHROMA_SITE_MPEG2;
   gst_video_colorimetry_from_string (&GST_VIDEO_INFO_COLORIMETRY (&info),
-      GST_VIDEO_COLORIMETRY_BT601);
+      "2:0:0:0");
   GST_VIDEO_INFO_MULTIVIEW_MODE (&info) = GST_VIDEO_MULTIVIEW_MODE_MONO;
 
   out_caps = gst_video_info_to_caps (&info);
@@ -1872,7 +1872,7 @@ GST_START_TEST (test_decode_stream2)
   GST_VIDEO_INFO_FPS_D (&info) = 1;
   GST_VIDEO_INFO_CHROMA_SITE (&info) = GST_VIDEO_CHROMA_SITE_MPEG2;
   gst_video_colorimetry_from_string (&GST_VIDEO_INFO_COLORIMETRY (&info),
-      GST_VIDEO_COLORIMETRY_BT601);
+      "2:0:0:0");
   GST_VIDEO_INFO_MULTIVIEW_MODE (&info) = GST_VIDEO_MULTIVIEW_MODE_MONO;
 
   out_caps = gst_video_info_to_caps (&info);