vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Dec 9 15:16:54 2015 +0100| [2bca94817a24c1ba43ff233182ca43dcc3797f9e] | committer: Francois Cartegnie
packetizer: h264_nal: fix off by one > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2bca94817a24c1ba43ff233182ca43dcc3797f9e --- modules/packetizer/h264_nal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c index 6b9b701..79a9b2e 100644 --- a/modules/packetizer/h264_nal.c +++ b/modules/packetizer/h264_nal.c @@ -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 && _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
