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

Jean-Baptiste Kempf jb at videolan.org
Fri Mar 13 10:24:25 CET 2020



On Fri, Mar 13, 2020, at 10:19, Francois Cartegnie wrote:
> 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

DTS and AC3 exist in wav.


-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list