Commit 66315042 authored by Felix Paul Kühne's avatar Felix Paul Kühne

h264_nal: add missing sanity check

parent 8bfce149
......@@ -148,6 +148,9 @@ int h264_get_spspps( uint8_t *p_buf, size_t i_buf,
size_t i_sps_size = 0, i_pps_size = 0;
int i_nal_type = NAL_UNKNOWN;
if (unlikely(p_buf == NULL || i_buf == 0))
return -1;
while( true )
{
int i_inc = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment