<html><head></head><body><div class="gmail_quote">Le 8 août 2017 12:20:38 GMT+03:00, Jean-Baptiste Kempf <jb@videolan.org> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">mpg123 uses long as rate...<br />---<br /> modules/codec/mpg123.c | 4 ++--<br /> 1 file changed, 2 insertions(+), 2 deletions(-)<br /><br />diff --git a/modules/codec/mpg123.c b/modules/codec/mpg123.c<br />index d9e646cb59..171254f707 100644<br />--- a/modules/codec/mpg123.c<br />+++ b/modules/codec/mpg123.c<br />@@ -186,9 +186,9 @@ static int UpdateAudioFormat( decoder_t *p_dec )<br /> aout_FormatPrepare( &p_dec->fmt_<a href="http://out.audio">out.audio</a> );<br /> <br /> /* Date management */<br />- if( p_dec->fmt_<a href="http://out.audio">out.audio</a>.i_rate != frame_info.rate )<br />+ if( p_dec->fmt_<a href="http://out.audio">out.audio</a>.i_rate != (unsigned int)frame_info.rate )<br /> {<br />- p_dec->fmt_<a href="http://out.audio">out.audio</a>.i_rate = frame_info.rate;<br />+ p_dec->fmt_<a href="http://out.audio">out.audio</a>.i_rate = (unsigned int)frame_info.rate;<br /> date_Init( &p_sys->end_date, p_dec->fmt_<a href="http://out.audio">out.audio</a>.i_rate, 1 );<br /> date_Set( &p_sys->end_date, 0 );<br /> }</pre></blockquote></div><br clear="all">This won't work if the rate can be larger than UINT_MAX. I don't know the mpg123 internals.<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>