[Ffmpeg-devel] Re: [PATCH] x264 avc encoding, movenc avcC, ctts

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:
[...]
> +            av_set_pts_info(s->streams[i], 64, c->time_base.num, c->time_base.den);
[...]
> +        trk->cluster[cl][id].cts = (pkt->pts - pkt->dts) * enc->time_base.num; /* enc->time_base.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