Commit aa395b66 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: faad: fully drop padding (fix #2368)

parent 5bca8d75
......@@ -218,8 +218,9 @@ static void FlushBuffer( decoder_sys_t *p_sys, size_t i_used )
if( i_used < p_block->i_buffer )
{
/* Drop padding */
if( p_block->p_buffer[i_used] == 0x00 )
i_used++;
for( ; i_used < p_block->i_buffer; i_used++ )
if( p_block->p_buffer[i_used] != 0x00 )
break;
p_block->i_buffer -= i_used;
p_block->p_buffer += i_used;
......
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