Revision 67c10de7

View differences:

libavformat/utils.c
1305 1305
    a = - 1;
1306 1306
    b = nb_entries;
1307 1307

  
1308
    //optimize appending index entries at the end
1309
    if(b && entries[b-1].timestamp < wanted_timestamp)
1310
        a= b-1;
1311

  
1308 1312
    while (b - a > 1) {
1309 1313
        m = (a + b) >> 1;
1310 1314
        timestamp = entries[m].timestamp;

Also available in: Unified diff