mpv/core
wm4 65d8709152 demux_lavf: add terrible hack to make DVD playback just work
DVD playback had some trouble with PTS resets: libavformat's genpts
feature would try reading until EOF (worst case) to find a new usable
PTS in case a packet's PTS is not set correctly. Especially with slow
DVD access, this would make the player to appear frozen.

Reimplement it partially in demux_lavf.c, and use that code in the DVD
case. This is heavily "inspired" by the code in av_read_frame from
libavformat/utils.c. The difference is that we stop reading if no PTS
has been found after 50 packets (consider this a heuristic). Also, we
don't bother with the PTS wrapping and last-frame-before-EOF handling.
Even with normal PTS wraps, the player frontend will go to hell for the
duration of a frame anyway, and should recover quickly after that.

The terribleness of this commit is mostly that we duplicate libavformat
functionality, and that we suddenly need a packet queue.
2013-07-14 23:44:50 +02:00
..
input Merge branch 'remove_old_demuxers' 2013-07-14 17:59:26 +02:00
timeline Merge branch 'remove_old_demuxers' 2013-07-14 17:59:26 +02:00
asxparser.c Cleanup some include statements 2013-07-12 22:16:26 +02:00
asxparser.h
av_common.c core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
av_common.h core: add common function to initialize AVPacket 2013-06-03 22:40:07 +02:00
av_log.c av_log: change how ffmpeg log messages are formatted 2013-06-22 20:34:47 +02:00
av_log.h
av_opts.c vf_lavfi: allow setting avopts 2013-05-26 16:44:18 +02:00
av_opts.h
bstr.c bstr: add bstrspn() 2013-04-21 03:47:05 +02:00
bstr.h bstr: add bstrto0() 2013-04-21 03:47:05 +02:00
charset_conv.c sub: libguess support for -subcp 2013-06-25 00:11:57 +02:00
charset_conv.h sub: add subtitle charset conversion 2013-06-25 00:11:56 +02:00
codecs.c
codecs.h
command.c core: don't access demux_stream outside of demux.c, make it private 2013-07-11 19:17:51 +02:00
command.h input: handle mouse movement differently 2013-06-29 22:58:13 +02:00
cpudetect.c
cpudetect.h
encode.h encode_lavc: simplify encoding status output; remove percentage 2013-06-20 11:17:13 +02:00
encode_lavc.c core: change open_stream and demux_open signature 2013-07-12 21:56:40 +02:00
encode_lavc.h encode_lavc: simplify encoding status output; remove percentage 2013-06-20 11:17:13 +02:00
m_config.c options: use case-sensitive comparsion for options 2013-05-15 15:30:06 +02:00
m_config.h core: add --reset-on-next-file option 2013-04-10 21:32:46 +02:00
m_option.c Remove internal network support 2013-07-07 19:42:38 +02:00
m_option.h m_option, vf: add label support 2013-05-23 01:02:24 +02:00
m_property.c
m_property.h
m_struct.c
m_struct.h m_struct: try to be more standard C 2013-07-12 18:40:08 +02:00
mp_common.c
mp_common.h
mp_core.h core: completely change handling of attached picture pseudo video 2013-07-11 19:23:56 +02:00
mp_memory_barrier.h core: add a spsc ringbuffer implementation 2013-06-16 18:20:39 +02:00
mp_msg.c encoding: when output is pipe: or pipe:1, avoid mp_msg to stdout 2013-04-15 13:30:21 +02:00
mp_msg.h encoding: when output is pipe: or pipe:1, avoid mp_msg to stdout 2013-04-15 13:30:21 +02:00
mp_osd.h
mp_ring.c mp_ring: make mp_ring_read_cb provide an exact amount of bytes 2013-07-13 10:25:39 +02:00
mp_ring.h mp_ring: improve documentation 2013-07-13 10:33:07 +02:00
mp_talloc.h
mplayer.c Merge branch 'remove_old_demuxers' 2013-07-14 17:59:26 +02:00
options.c Merge branch 'remove_old_demuxers' 2013-07-14 17:59:26 +02:00
options.h demux_lavf: add terrible hack to make DVD playback just work 2013-07-14 23:44:50 +02:00
parser-cfg.c
parser-cfg.h
parser-mpcmd.c options: fix exit code when using help options 2013-05-15 16:02:52 +02:00
parser-mpcmd.h options: fix exit code when using help options 2013-05-15 16:02:52 +02:00
path.c command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
path.h command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
playlist.c playlist: don't add entries in reverse 2013-07-05 14:07:56 +02:00
playlist.h command: add some playlist manipulation commands 2013-07-02 13:23:26 +02:00
playlist_parser.c core: change open_stream and demux_open signature 2013-07-12 21:56:40 +02:00
playlist_parser.h
resolve.h core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
resolve_quvi.c core: rename mplayer.h and quvi.c 2013-06-28 15:40:28 +02:00
resolve_quvi9.c core: add libquvi 0.9 support 2013-06-28 15:47:35 +02:00
screenshot.c command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
screenshot.h command: add screenshot_to_file command 2013-07-08 20:37:11 +02:00
subopt-helper.c
subopt-helper.h
version.c build: make the "built on" report opt-out 2013-07-11 09:27:01 +02:00