changeset 31148:6957d78df897

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.
author reimar
date Sun, 23 May 2010 23:22:25 +0000
parents 97660f5d9aef
children 8b1a6a6cda36
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun May 23 22:26:10 2010 +0000
+++ b/mplayer.c	Sun May 23 23:22:25 2010 +0000
@@ -1801,7 +1801,7 @@
 	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)