make len==0 return OPUS_INVALID_PACKET rather than OPUS_BAD_ARG for opus_packet_parse...
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 7 Jul 2016 02:25:59 +0000 (22:25 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 7 Jul 2016 02:25:59 +0000 (22:25 -0400)
commit4b1f45e407ad9923e64f2f1a5689290575899f9c
treea1c7c305f050f0a4129bf5788c8faf7dee4638a3
parent5e50f1f9a3a488445e76a4a9f00f3cc74fbe8cdf
make len==0 return OPUS_INVALID_PACKET rather than OPUS_BAD_ARG for opus_packet_parse_impl()

len<0 still returns OPUS_BAD_ARG
src/opus.c