diff --git a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264encoder.cpp b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264encoder.cpp index 2ac53695a7..b7c30db120 100644 --- a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264encoder.cpp +++ b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh264encoder.cpp @@ -2189,7 +2189,7 @@ gst_nv_h264_encoder_create_class_data (GstObject * device, gpointer session, } src_caps_str = "video/x-h264, " + resolution_str + ", " + profile_str + - ", stream-format = (string) { avc, byte-stream }, alignment = (string) au"; + ", stream-format = (string) { byte-stream, avc }, alignment = (string) au"; system_caps = gst_caps_from_string (sink_caps_str.c_str ()); sink_caps = gst_caps_copy (system_caps); @@ -2518,7 +2518,7 @@ gst_nv_h264_encoder_register_auto_select (GstPlugin * plugin, } src_caps_str = "video/x-h264, " + resolution_str + ", " + profile_str + - ", stream-format = (string) { avc, byte-stream }, alignment = (string) au"; + ", stream-format = (string) { byte-stream, avc }, alignment = (string) au"; system_caps = gst_caps_from_string (sink_caps_str.c_str ()); sink_caps = gst_caps_new_empty (); diff --git a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp index e082375968..80dec43a51 100644 --- a/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp +++ b/subprojects/gst-plugins-bad/sys/nvcodec/gstnvh265encoder.cpp @@ -2246,7 +2246,7 @@ gst_nv_h265_encoder_create_class_data (GstObject * device, gpointer session, + ", interlace-mode = (string) progressive"; src_caps_str = "video/x-h265, " + resolution_str + ", " + profile_str + - ", stream-format = (string) { hvc1, hev1, byte-stream }" + + ", stream-format = (string) { byte-stream, hvc1, hev1 }" + ", alignment = (string) au"; system_caps = gst_caps_from_string (sink_caps_str.c_str ()); @@ -2572,7 +2572,7 @@ gst_nv_h265_encoder_register_auto_select (GstPlugin * plugin, + ", interlace-mode = (string) progressive"; src_caps_str = "video/x-h265, " + resolution_str + ", " + profile_str + - ", stream-format = (string) { hvc1, hev1, byte-stream }" + + ", stream-format = (string) { byte-stream, hvc1, hev1 }" + ", alignment = (string) au"; system_caps = gst_caps_from_string (sink_caps_str.c_str ());