[vlc-devel] [RFC] codec/lpcm: drop blocks with invalid size

Francois Cartegnie fcvlcdev at free.fr
Wed Dec 7 17:33:15 CET 2016


Le 07/12/2016 à 13:35, Filip Roséen a écrit :
> +
> +        if( block_nb_frames > aout_nb_frames )
> +        {
> +            msg_Warn( p_dec, "invalid block size" );
> +
> +            block_Release( p_block );
> +            block_Release( p_aout_buffer );
> +
> +            return NULL;

I would truncate buffer to zero instead
and set corrupted flag.


François


More information about the vlc-devel mailing list