From 73dedf9a51e70868f6aa029b968f8c7ef6af530e Mon Sep 17 00:00:00 2001 From: Daniel Morin Date: Sun, 28 Jan 2024 20:52:40 -0500 Subject: [PATCH] h264parse: Remove un-needed check on SPS state Fixes #3254 - Having SEI before SPS is not an issue anymore with AU boundary detection based on backlog. Part-of: --- subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c index e3989c2fd3..e348fa471f 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gsth264parse.c @@ -1129,10 +1129,6 @@ gst_h264_parse_process_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu) h264parse->header = TRUE; break; case GST_H264_NAL_SEI: - /* expected state: got-sps */ - if (!GST_H264_PARSE_STATE_VALID (h264parse, GST_H264_PARSE_STATE_GOT_SPS)) - return FALSE; - h264parse->header = TRUE; gst_h264_parse_process_sei (h264parse, nalu); /* mark SEI pos */