hevc: Search start code in decode_nal_units().
authorYusuke Nakamura <muken.the.vfrmaniac@gmail.com>
Sun, 20 Oct 2013 17:36:51 +0000 (02:36 +0900)
committerMickaël Raulet <mraulet@insa-rennes.fr>
Sun, 27 Oct 2013 09:43:14 +0000 (10:43 +0100)
commitf7f88018393b96ae410041e9a0fc51f4c082002e
treed366cc464f179aa70355faaa9a780b4adcfed158
parent610a8b1537fe728f4f1e44a5276f225334653123
hevc: Search start code in decode_nal_units().

User may cut off a weird position and send a packet from there.
This avoids returning as invalid data immediately.
libavcodec/hevc.c