[vlc-devel] [PATCH 10/11] demux: wav: don't increment pts past data chunk bundary

Francois Cartegnie fcvlcdev at free.fr
Fri Mar 13 10:19:47 CET 2020


Le 12/03/2020 à 15:05, Thomas Guillem a écrit :

>      if( p_sys->i_data_size > 0 )
>      {
> @@ -99,7 +101,11 @@ static int Demux( demux_t *p_demux )
>  
>          /* Don't read past data chunk boundary */
>          if ( i_end < i_pos + i_read_size )
> +        {
>              i_read_size = i_end - i_pos;
> +            i_read_samples = ( p_sys->i_frame_size - i_read_size )
> +                           * p_sys->i_frame_samples / p_sys->i_frame_size;
> +        }
>  

AFAIK RIFF does not carry only uncompressed audio

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list