Revision b6204677 libavcodec/wmadec.c

View differences:

libavcodec/wmadec.c
284 284
    }
285 285

  
286 286
    bps = (float)s->bit_rate / (float)(s->nb_channels * s->sample_rate);
287
    s->byte_offset_bits = av_log2((int)(bps * s->frame_len / 8.0)) + 2;
287
    s->byte_offset_bits = av_log2((int)(bps * s->frame_len / 8.0 + 0.5)) + 2;
288 288

  
289 289
    /* compute high frequency value and choose if noise coding should
290 290
       be activated */

Also available in: Unified diff