tests: svthevcenc: Fix test_encode_simple
authorJan Alexander Steffens (heftig) <heftig@archlinux.org>
Sat, 12 Sep 2020 00:48:43 +0000 (02:48 +0200)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 10 Oct 2020 04:34:56 +0000 (04:34 +0000)
Pick the same I420 format the other test use. Without this, the source
picks AYUV64, which fails.

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

tests/check/elements/svthevcenc.c

index d1234fc..1b938e1 100644 (file)
@@ -29,7 +29,7 @@ GST_START_TEST (test_encode_simple)
   h = gst_harness_new_parse ("svthevcenc speed=9 bitrate=1000 ! h265parse");
 
   gst_harness_add_src_parse (h, "videotestsrc is-live=true ! "
-      "capsfilter caps=\"video/x-raw,width=320,height=240,framerate=25/1\"",
+      "capsfilter caps=\"video/x-raw,format=I420,width=320,height=240,framerate=25/1\"",
       TRUE);
 
   /* Push 25 buffers into the encoder */