From 2775b202dc6a2d396c64d8e9d2b4c2fe000662b0 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Tue, 11 Aug 2015 03:47:42 +0300 Subject: [PATCH] videoparsers: h265: Avoid skipping of EOS and EOB nals EndOfSequence and EndOfBitstream nal units have size of 2 bytes. Don't consider them as broken nals. https://bugzilla.gnome.org/show_bug.cgi?id=753497 --- gst/videoparsers/gsth265parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index a11b7fc5d3..1c33f2519f 100644 --- a/gst/videoparsers/gsth265parse.c +++ b/gst/videoparsers/gsth265parse.c @@ -496,7 +496,7 @@ gst_h265_parse_process_nal (GstH265Parse * h265parse, GstH265NalUnit * nalu) GstH265ParserResult pres = GST_H265_PARSER_ERROR; /* nothing to do for broken input */ - if (G_UNLIKELY (nalu->size < 3)) { + if (G_UNLIKELY (nalu->size < 2)) { GST_DEBUG_OBJECT (h265parse, "not processing nal size %u", nalu->size); return; }