smartencoder: fix detection of avc1

While avc1 is the FourCC, avc is the name used in caps

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1549>
This commit is contained in:
Mathieu Duponchelle 2022-01-22 02:35:36 +01:00 committed by GStreamer Marge Bot
parent 6bcfce7501
commit efb18ec300

View 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),