mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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
This commit is contained in:
parent
32942c99d8
commit
2775b202dc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue