mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
h265parser: Stop considering 6 bytes NAL complete
This is only TRUE for EOS / EOB NALs. Before this patch, passing any valid 6 bytes of a NAL would make the parser pretend this NAL is complete.
This commit is contained in:
parent
95c99aa0a7
commit
7d1be36561
1 changed files with 6 additions and 1 deletions
|
@ -1226,7 +1226,12 @@ gst_h265_parser_identify_nalu (GstH265Parser * parser,
|
|||
gst_h265_parser_identify_nalu_unchecked (parser, data, offset, size,
|
||||
nalu);
|
||||
|
||||
if (res != GST_H265_PARSER_OK || nalu->size == 2)
|
||||
if (res != GST_H265_PARSER_OK)
|
||||
goto beach;
|
||||
|
||||
/* The two NALs are exactly 2 bytes size and are placed at the end of an AU,
|
||||
* there is no need to wait for the following */
|
||||
if (nalu->type == GST_H265_NAL_EOS || nalu->type == GST_H265_NAL_EOB)
|
||||
goto beach;
|
||||
|
||||
off2 = scan_for_start_codes (data + nalu->offset, size - nalu->offset);
|
||||
|
|
Loading…
Reference in a new issue