Commit 2bca9481 authored by Francois Cartegnie's avatar Francois Cartegnie

packetizer: h264_nal: fix off by one

parent d0369681
......@@ -31,7 +31,7 @@
bool h264_isavcC( const uint8_t *p_buf, size_t i_buf )
{
return ( i_buf > H264_MIN_AVCC_SIZE &&
return ( i_buf >= H264_MIN_AVCC_SIZE &&
p_buf[0] == 0x01 &&
(p_buf[4] & 0xFC) == 0xFC &&
(p_buf[4] & 0x03) != 0x02 &&
......
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