[MPlayer-cvslog] r31205 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Mon May 24 01:22:25 CEST 2010


Author: reimar
Date: Mon May 24 01:22:25 2010
New Revision: 31205

Log:
Use MP_NOPTS_VALUE as "default" pts for delayed frames instead of some
insanely large value.
Avoids hang if a decoder handles the data/size == 0 condition incorrectly.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Mon May 24 00:26:10 2010	(r31204)
+++ trunk/mplayer.c	Mon May 24 01:22:25 2010	(r31205)
@@ -1801,7 +1801,7 @@ static int generate_video_frame(sh_video
 	if (in_size < 0) {
 	    // try to extract last frames in case of decoder lag
 	    in_size = 0;
-	    pts = 1e300;
+	    pts = MP_NOPTS_VALUE;
 	    hit_eof = 1;
 	}
 	if (in_size > max_framesize)


More information about the MPlayer-cvslog mailing list