comparison utils.c @ 6465:e0d8a52ce091 libavformat

Fix formatting for negative start times (issue 2139). Patch by Christian d'Heureuse, chdh inventec ch
author cehoyos
date Tue, 07 Sep 2010 21:06:21 +0000
parents 22cb1e82d915
children fed4be333771
comparison
equal deleted inserted replaced
6464:b6e3e7876e4c 6465:e0d8a52ce091
3133 } 3133 }
3134 if (ic->start_time != AV_NOPTS_VALUE) { 3134 if (ic->start_time != AV_NOPTS_VALUE) {
3135 int secs, us; 3135 int secs, us;
3136 av_log(NULL, AV_LOG_INFO, ", start: "); 3136 av_log(NULL, AV_LOG_INFO, ", start: ");
3137 secs = ic->start_time / AV_TIME_BASE; 3137 secs = ic->start_time / AV_TIME_BASE;
3138 us = ic->start_time % AV_TIME_BASE; 3138 us = abs(ic->start_time % AV_TIME_BASE);
3139 av_log(NULL, AV_LOG_INFO, "%d.%06d", 3139 av_log(NULL, AV_LOG_INFO, "%d.%06d",
3140 secs, (int)av_rescale(us, 1000000, AV_TIME_BASE)); 3140 secs, (int)av_rescale(us, 1000000, AV_TIME_BASE));
3141 } 3141 }
3142 av_log(NULL, AV_LOG_INFO, ", bitrate: "); 3142 av_log(NULL, AV_LOG_INFO, ", bitrate: ");
3143 if (ic->bit_rate) { 3143 if (ic->bit_rate) {