diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c index e433a1cdb5..14bd7dce27 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c +++ b/subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c @@ -1265,12 +1265,6 @@ gst_h265_parser_parse_user_data_unregistered (GstH265Parser * parser, READ_UINT8 (nr, data[i], 8); } - if (payload_size < 1) { - GST_WARNING ("No more remaining payload data to store"); - g_clear_pointer (&data, g_free); - return GST_H265_PARSER_BROKEN_DATA; - } - urud->data = data; GST_MEMDUMP ("SEI user data unregistered", data, payload_size); return GST_H265_PARSER_OK; diff --git a/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c b/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c index dd0c3b224d..6e7f2e8c62 100644 --- a/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c +++ b/subprojects/gst-plugins-bad/gst/videoparsers/gsth265parse.c @@ -728,9 +728,6 @@ gst_h265_parse_process_sei_user_data_unregistered (GstH265Parse * h265parse, { GstByteReader br; - if (urud->data == NULL || urud->size < 1) - return; - gst_byte_reader_init (&br, urud->data, urud->size); gst_video_parse_user_data_unregistered ((GstElement *) h265parse,