Commit 61ac38d5 authored by Pierre Ynard's avatar Pierre Ynard

vod: use memcmp()

Port df301d65 to duplicated code
(cherry picked from commit 7820c6b2)
Signed-off-by: default avatarPierre Ynard <linkfanel@yahoo.fr>
parent b9a8c6fc
......@@ -584,7 +584,7 @@ static int MediaAddES( vod_t *p_vod, vod_media_t *p_media, es_format_t *p_fmt )
i_size = i_buffer;
for( i_offset = 4; i_offset+3 < i_buffer ; i_offset++)
{
if( p_buffer[i_offset] == 0 && p_buffer[i_offset+1] == 0 && p_buffer[i_offset+2] == 0 && p_buffer[i_offset+3] == 1 )
if( !memcmp (p_buffer + i_offset, "\x00\x00\x00\x01", 4 ) )
{
/* we found another startcode */
i_size = i_offset;
......
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