From 9accf21e53f43656df3e242fccf341799978c75c Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Tue, 3 Sep 2024 17:09:40 -0400 Subject: [PATCH] h264parse: Wait for SEI before exposing src caps This makes sure 'lcevc=false' src caps are not set before parsing SEI. It is needed for decodebin2 to work properly with the LCEVC decoder. Part-of: --- subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c index 35cde95df8..1aba7123ee 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c @@ -3674,10 +3674,7 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps) gst_caps_unref (in_caps); } - if (format == h264parse->format && align == h264parse->align) { - /* we did parse codec-data and might supplement src caps */ - gst_h264_parse_update_src_caps (h264parse, caps); - } else if (format == GST_H264_PARSE_FORMAT_AVC + if (format == GST_H264_PARSE_FORMAT_AVC || format == GST_H264_PARSE_FORMAT_AVC3) { /* if input != output, and input is avc, must split before anything else */ /* arrange to insert codec-data in-stream if needed.