X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fopus.h;h=7365e2e6d5e58ce2c97796f65dcf260e4f579631;hb=91b66e27391a81116552120362f03712b4cac220;hp=9721bc17a64e65797c661c1e0c5685ea2f50b026;hpb=7e4ce2241659e979d503800201662ff39fd194e5;p=vlc diff --git a/modules/demux/opus.h b/modules/demux/opus.h index 9721bc17a6..7365e2e6d5 100644 --- a/modules/demux/opus.h +++ b/modules/demux/opus.h @@ -23,14 +23,14 @@ /* Returns Opus frame duration in samples */ -static inline int opus_frame_duration(unsigned char *data, long len) +static inline unsigned opus_frame_duration(unsigned char *data, long len) { static const int silk_fs_div[4] = { 6000, 3000, 1500, 1000 }; - int toc; - int nframes; - int frame_size; - int nsamples; - int i_rate; + unsigned toc; + unsigned nframes; + unsigned frame_size; + unsigned nsamples; + unsigned i_rate; if( len < 1 ) return 0; toc = data[0];