diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-23 23:22:25 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-23 23:22:25 +0000 |
commit | 4ad8b9e0cc6e3c370d682a08e877ffbff992089e (patch) | |
tree | e8a9b53a21d46974829d5ab60baa7665b03597fb /mplayer.c | |
parent | 8e84b9288cd6e9036e3c151da13a8c654a77a6cf (diff) | |
download | mpv-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |