codecparser: h265: Fix nal unit size checking
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Fri, 17 Apr 2015 12:15:33 +0000 (15:15 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Apr 2015 19:47:38 +0000 (21:47 +0200)
commite6e0702821d373acb80adb4ec15a4ba986744e5c
treef3bca50815ce7ac10c1e8c78e76fbdd003d2e015
parentaf7ff2bd95ad8f9246bf7d3ee3ee9448c06a19d1
codecparser: h265: Fix nal unit size checking

The EOS and EOB nals have the size 2 which is the size of
nal unit header itself. The gst_h265_parser_identify_nalu()
is not required to scan start code again in this case.

In other cases, for a valid nalunit the minimum required size
is 3 bytes (2 byte header and at least 1 byte RBSP payload)
gst-libs/gst/codecparsers/gsth265parser.c