[vlc-devel] [PATCH] wasapi: implement pass-through

Thomas Guillem thomas at gllm.fr
Mon May 2 17:06:38 CEST 2016



On Mon, May 2, 2016, at 16:51, Francois Cartegnie wrote:
> Le 02/05/2016 à 16:34, Thomas Guillem a écrit :
> >  
> > -        const size_t copy = frames * sys->bytes_per_frame;
> > +        const size_t copy = frames * sys->bytes_per_frame / sys->frame_length;
> 
> As set from fmt->i_frame_length and seems set by codecs & aout.
> Guaranteed > 0 ?

Only if aout_BitsPerSample doesn't return 0. I'll add an extra check for
sys->frame_length != 0.

> 
> Francois
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list