mpv/demux
wm4 7dbed3f019 demux_mkv: don't overflow packet queue when doing sub-preroll
Consider the cluster used for prerolling contains an insane amount of
subtitle packets. Then the demuxer packet queue would be full of
subtitle packets, and demux.c would refuse to read any further packets -
including video and audio packets, resulting in EOF. Since everything
involving Matroska and subtitles is 100% insane, this can actually
happen.

Fix this by putting a limit on the number of subtitle packets read by
preroll, and throw away any further packets if the limit is exceeded. If
this happens, the preroll mechanism will stop working, but the player's
operation is unaffected otherwise.
2013-09-08 07:47:26 +02:00
..
codec_tags.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
codec_tags.h
demux.c demux: check whether stream is selected in demux_get_next_pts() 2013-08-22 21:19:40 +02:00
demux.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
demux_cue.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
demux_edl.c demux: remove useless author/comment fields 2013-07-12 22:16:27 +02:00
demux_lavf.c demux_lavf: workaround for broken libavformat subtitle seeking 2013-09-07 08:52:14 +02:00
demux_libass.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
demux_mf.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
demux_mkv.c demux_mkv: don't overflow packet queue when doing sub-preroll 2013-09-08 07:47:26 +02:00
demux_mng.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
demux_packet.h demux: workaround for -demuxer mpegts -correct-pts 2013-05-21 22:07:13 +02:00
demux_raw.c demux_raw: read multiple frames per packet 2013-08-22 21:19:34 +02:00
demux_subreader.c demux_subreader: report what subtitle format has been found 2013-08-15 23:43:05 +02:00
ebml.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
ebml.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
matroska.h demux_mkv: support dirac in mkv 2013-05-21 22:07:12 +02:00
mf.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
mf.h
ms_hdr.h ms_hdr: remove unused definitions 2013-07-10 02:00:47 +02:00
stheader.h vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API 2013-07-28 19:25:07 +02:00