comparison utils.c @ 199:66a05c4f8350 libavformat

suppressed frame number modulus hack - added loop_input hack which I find easier to understand
author bellard
date Sun, 24 Aug 2003 21:20:44 +0000
parents 64dbc0b60dbe
children 61f9cad50ff3
comparison
equal deleted inserted replaced
198:64dbc0b60dbe 199:66a05c4f8350
604 st = ic->streams[i]; 604 st = ic->streams[i];
605 if (st->start_time != AV_NOPTS_VALUE && 605 if (st->start_time != AV_NOPTS_VALUE &&
606 st->start_time < start_time) 606 st->start_time < start_time)
607 start_time = st->start_time; 607 start_time = st->start_time;
608 } 608 }
609 fprintf(stderr, "start=%lld\n", start_time);
610 if (start_time != MAXINT64) 609 if (start_time != MAXINT64)
611 ic->start_time = start_time; 610 ic->start_time = start_time;
612 611
613 /* estimate the end time (duration) */ 612 /* estimate the end time (duration) */
614 /* XXX: may need to support wrapping */ 613 /* XXX: may need to support wrapping */
1502 nd = 0; 1501 nd = 0;
1503 while (isdigit(*p)) { 1502 while (isdigit(*p)) {
1504 nd = nd * 10 + *p++ - '0'; 1503 nd = nd * 10 + *p++ - '0';
1505 } 1504 }
1506 c = *p++; 1505 c = *p++;
1507 if (c == '*' && nd > 0) {
1508 // The nd field is actually the modulus
1509 number = number % nd;
1510 c = *p++;
1511 nd = 0;
1512 }
1513 } while (isdigit(c)); 1506 } while (isdigit(c));
1514 1507
1515 switch(c) { 1508 switch(c) {
1516 case '%': 1509 case '%':
1517 goto addchar; 1510 goto addchar;