vp8_peek_si_internal: quiet static analysis warning

the vpx_decoder layer guarantees that when called directly this won't
receive NULL data and the reuse via decode() is protected by a NULL data
check and 0 size check (NULL data and non-zero data size is protected by
the vpx_decoder layer).

Change-Id: I7437fb5ca4e4aa431963d55b909d4d920f339be3
This commit is contained in:
James Zern 2016-03-25 09:57:53 -07:00
parent 79dc6c0393
commit 1bf7a0fb29

View File

@ -9,6 +9,7 @@
*/
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "./vp8_rtcd.h"
@ -154,6 +155,8 @@ static vpx_codec_err_t vp8_peek_si_internal(const uint8_t *data,
{
vpx_codec_err_t res = VPX_CODEC_OK;
assert(data != NULL);
if(data + data_sz <= data)
{
res = VPX_CODEC_INVALID_PARAM;