[vlc-devel] [PATCH] Implement basic Opus support in MKV

Denis Charmet typx at dinauz.org
Thu Nov 14 17:35:25 CET 2013


Le jeudi 14 novembre 2013 à 05:22:30, Rafaël Carré a écrit :
> if (i_seek_preroll < tracks[i_track]->i_seek_preroll)
>     i_seek_preroll = tracks[i_track]->i_seek_preroll;
> 
> is simpler to read than ternary
And I prefer ternary so I'll use __MAX() so it's even more readable.
> > +        if( xiph_PackHeaders( (int *)&p_tk->fmt.i_extra,
> > +                              (void **) &p_tk->fmt.p_extra,
> 
> Why do you need a cast to (int*) and (void**) ?
> 
Because C++.

Regards,

-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre



More information about the vlc-devel mailing list