diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-08-11 03:47:42 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-08-11 11:34:36 +0100 |
commit | 2775b202dc6a2d396c64d8e9d2b4c2fe000662b0 (patch) | |
tree | b08dd51926b580f8dc9138fd38db91d842b402af /gst | |
parent | 32942c99d882dec0d6ed0ca4f31f5c83fe2b6b62 (diff) | |
download | gstreamer-plugins-bad-2775b202dc6a2d396c64d8e9d2b4c2fe000662b0.tar.gz |
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
Diffstat (limited to 'gst')
-rw-r--r-- | gst/videoparsers/gsth265parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videoparsers/gsth265parse.c b/gst/videoparsers/gsth265parse.c index a11b7fc5d..1c33f2519 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; } |