[MPlayer-cvslog] CVS: main/libmpdemux demux_mkv.c,1.29,1.30
Moritz Bunkus CVS
syncmail at mplayerhq.hu
Sun Nov 28 22:08:48 CET 2004
CVS change done by Moritz Bunkus CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv10439
Modified Files:
demux_mkv.c
Log Message:
Make use of the default duration for one frame if it is present in the file. This produces much smoother timecodes for laced audio frames. And I REALLY don't know why I missed that before...
Index: demux_mkv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- demux_mkv.c 26 Nov 2004 16:36:02 -0000 1.29
+++ demux_mkv.c 28 Nov 2004 21:08:46 -0000 1.30
@@ -897,6 +897,8 @@
track->v_frate = num;
mp_msg (MSGT_DEMUX, MSGL_V, "[mkv] | + Frame rate: %f\n",
track->v_frate);
+ if (track->v_frate > 0)
+ track->default_duration = 1 / track->v_frate;
break;
}
@@ -1095,6 +1097,7 @@
else
{
track->v_frate = 1000000000.0 / num;
+ track->default_duration = num / 1000000000.0;
mp_msg (MSGT_DEMUX, MSGL_V, "[mkv] | + Default duration: "
"%.3fms ( = %.3f fps)\n",num/1000000.0,track->v_frate);
}
More information about the MPlayer-cvslog
mailing list