[MPlayer-dev-eng] [PATCH] mkv first frame duration

Loren Merritt lorenm at u.washington.edu
Tue Jul 27 01:01:46 CEST 2004


When playing a variable-framerate Matroska, MPlayer ignores the duration
of the first frame (which should be calculated from the second frame's
timestamp), and uses the video's default frame duration instead.
The patch fixes that.

I don't know what was the purpose of the test that I removed, and I'm not
sure that I didn't break anything.

--Loren Merritt
-------------- next part --------------
--- libmpdemux/video.c~	2004-04-11 12:03:12.000000000 -0700
+++ libmpdemux/video.c	2004-07-26 13:44:21.000000000 -0700
@@ -456,7 +456,7 @@
       case DEMUXER_TYPE_GIF:
       case DEMUXER_TYPE_REAL:
       case DEMUXER_TYPE_MATROSKA:
-	if(d_video->pts>0 && pts1>0 && d_video->pts>pts1)
+	if(d_video->pts>0 /*&& pts1>0*/ && d_video->pts>pts1)
 	  frame_time=d_video->pts-pts1;
         break;
 #ifdef USE_TV


More information about the MPlayer-dev-eng mailing list