[FFmpeg-devel] libossupport status
Luca Abeni
lucabe72
Fri Dec 28 21:21:40 CET 2007
Hi Michael,
Michael Niedermayer wrote:
[...]
>> if (ist->st->codec->rate_emu) {
>> int64_t pts = av_rescale((int64_t) ist->frame * ist->st->codec->time_base.num, 1000000, ist->st->codec->time_base.den);
>> int64_t now = av_gettime() - ist->start;
>> - if (pts > now)
>> - usleep(pts - now);
>> + if (pts > now) {
>> + struct timeval tv;
>> + tv.tv_sec = (pts - now) / 1000000;
>> + tv.tv_usec = (pts - now) % 1000000;
>> + select(0, NULL, NULL, NULL, &tv);
>> + }
>
> iam NOT in favor of this obfuscation!
Ok, no problem; patch discarded.
Thanks,
Luca
More information about the ffmpeg-devel
mailing list