[Ffmpeg-devel] [PATCH] video4linux2 input
Tue Jan 31 09:59:17 CET 2006
On Mon, 2006-01-30 at 18:44 +0100, Michael Niedermayer wrote:
> > av_set_pts_info(st, 48, 1, 1000000); /* 48 bits pts in us */
> why 48 and not 64
I just discovered why: libavformat/audio.c uses 48 bits pts, so if we
want audio and video pts to be comparable we must either use 48 bit for
the video pts or switch the audio pts to 64 bit too.
So, I think I have 2 options:
1) leave "av_set_pts_info(st, 48, 1, 1000000);" as it is (and eventually
provide a patch switching audio.c, grab.c & friends to 64bit pts later)
2) change it to "av_set_pts_info(st, 64, 1, 1000000);" and change
audio.c, grab.c and grab_bktr.c to 64bit pts in the v4l2.diff patch that
has to be applied when committing v4l2.c
Let me know which option you prefer, and I'll send the updated files.
Copy this in your signature, if you think it is important:
N O W A R ! ! !
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Acquista ora Email.it Phone Card e comincia a risparmiare sulle tue telefonate! Clicca e scopri l'offerta
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2684&d=31-1
More information about the ffmpeg-devel