On Thu, Nov 10, 2011 at 02:44:03PM -0800, Luca Barbato wrote: > On 11/10/11 1:02 PM, Janne Grunau wrote: > >+ pkt_dts += ((int64_t)AV_TIME_BASE * > >+ ist->st->codec->time_base.num * ticks) > >/ > >+ ist->st->codec->time_base.den; > > Shouldn't we have a function that does something similar already?
for this specificly? doesn't look like we have although we do the same calculation at 2 other places in avconv.c if you're thinking of av_rescale() it is unecessary since the multiplication can't overflow for expected small ticks values. Janne _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel