ts_to_samples 1406 libavformat/utils.c int64_t sample = ts_to_samples(st, pts); ts_to_samples 1407 libavformat/utils.c int duration = ts_to_samples(st, pkt->duration);