[Ffmpeg-devel] Re: [PATCH] x264 avc encoding, movenc avcC, ctts (original) (raw)

Michael Niedermayer michaelni
Wed Feb 22 14:27:33 CET 2006


Hi

On Wed, Feb 22, 2006 at 02:01:16PM +0100, Baptiste COUDURIER wrote: [...]

+ avsetptsinfo(s->streams[i], 64, c->timebase.num, c->timebase.den); [...] + trk->cluster[cl][id].cts = (pkt->pts - pkt->dts) * enc->timebase.num; /* enc->timebase.num will be trk->sampleDuration */

why not av_set_pts_info(s->streams[i], 64, 1, c->time_base.den) and trk->cluster[cl][id].cts = pkt->pts - pkt->dts; ?

[...]

-- Michael



More information about the ffmpeg-devel mailing list