Commit 06435890 authored by Felix Abecassis's avatar Felix Abecassis

h264: refactor emulation prevention byte handling

parent 99986702
......@@ -555,22 +555,7 @@ static void CreateDecodedNAL( uint8_t **pp_ret, int *pi_ret,
*pp_ret = dst;
if( dst )
{
while( src < end )
{
if( src < end - 3 && src[0] == 0x00 && src[1] == 0x00 &&
src[2] == 0x03 )
{
*dst++ = 0x00;
*dst++ = 0x00;
src += 3;
continue;
}
*dst++ = *src++;
}
}
*pi_ret = dst - *pp_ret;
*pi_ret = nal_decode(src, dst, i_src);
}
/*****************************************************************************
......
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