smartencoder: fix detection of avc1
authorMathieu Duponchelle <mathieu@centricular.com>
Sat, 22 Jan 2022 01:35:36 +0000 (02:35 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 2 Aug 2022 15:48:12 +0000 (15:48 +0000)
While avc1 is the FourCC, avc is the name used in caps

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1549>

subprojects/gst-plugins-base/gst/encoding/gstsmartencoder.c

index db55af7..6c4776b 100644 (file)
@@ -793,7 +793,7 @@ gst_smart_encoder_add_parser (GstSmartEncoder * self, GstCaps * format)
     }
 
     stream_format = gst_structure_get_string (structure, "stream-format");
-    if (g_strcmp0 (stream_format, "avc1"))
+    if (g_strcmp0 (stream_format, "avc"))
       g_object_set (parser, "config-interval", -1, NULL);
 
   } else if (gst_structure_has_name (gst_caps_get_structure (format, 0),