summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-23 23:22:25 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-05-23 23:22:25 +0000
commit4ad8b9e0cc6e3c370d682a08e877ffbff992089e (patch)
treee8a9b53a21d46974829d5ab60baa7665b03597fb /mplayer.c
parent8e84b9288cd6e9036e3c151da13a8c654a77a6cf (diff)
downloadmpv-4ad8b9e0cc6e3c370d682a08e877ffbff992089e.tar.bz2
mpv-4ad8b9e0cc6e3c370d682a08e877ffbff992089e.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31205 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 4df25a5010..fdb3b1c90b 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1801,7 +1801,7 @@ static int generate_video_frame(sh_video_t *sh_video, demux_stream_t *d_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)