Use av_gettime() in various places