[Ffmpeg-devel] wma v2 decoding - attempt at fixing

Roberto Togni r_togni
Tue Dec 27 20:59:07 CET 2005


On Mon, 26 Dec 2005 14:49:33 +0100
Reimar D?ffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:

> Hi,
> On Mon, Dec 26, 2005 at 02:25:47PM +0100, Roberto Togni wrote:
> > Please test it with as many files as possible.
> 
> Works fine with the files included in Windows XP (only samples I have
> *g*).
> 
> >      bps = (float)s->bit_rate / (float)(s->nb_channels * s->sample_rate);
> > -    s->byte_offset_bits = av_log2((int)(bps * s->frame_len / 8.0)) + 2;
> > +    s->byte_offset_bits = av_log2((int)((bps * s->frame_len / 8.0) + 0.5)) + 2;
> 
> I guess you could get rid of that extra pair of parenthisis I guess,
> after all gcc already knows the */ before +- rule :-)
> 
> Greetings,
> Reimar D?ffinger
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
> 
Applied with the parenthesis fixed

Ciao,
 Roberto





More information about the ffmpeg-devel mailing list