Revision f2a90c3b libavformat/mp3enc.c

View differences:

libavformat/mp3enc.c
339 339
    for (i = 1; i < VBR_TOC_SIZE; ++i) {
340 340
        int j = i * toc->pos / VBR_TOC_SIZE;
341 341
        int seek_point = 256LL * toc->bag[j] / xing_header->size;
342
        avio_w8(s->pb, (uint8_t)(seek_point < 256 ? seek_point : 255));
342
        avio_w8(s->pb, FFMIN(seek_point, 255));
343 343
    }
344 344

  
345 345
    avio_flush(s->pb);

Also available in: Unified diff