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

encoder: twolame: return NULL if flush returns 0 bytes (fix #11553)

parent ab6f01f9
......@@ -270,8 +270,7 @@ static block_t *Encode( encoder_t *p_enc, block_t *p_aout_buf )
i_used = twolame_encode_flush( p_sys->p_twolame,
p_sys->p_out_buffer, MAX_CODED_FRAME_SIZE );
if( i_used < 0 )
if( i_used <= 0 )
return NULL;
p_block = block_Alloc( 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