diff options
author | wm4 <wm4@nowhere> | 2013-12-12 01:44:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-12 01:46:45 +0100 |
commit | 053044741713eddc4aea024fb0c175aa01fc092d (patch) | |
tree | bdf12e75b406696c19519649a4ba32d0e170e8f0 /mpvcore/player/sub.c | |
parent | 76ce5434b2716abf063b6d581fe2930825cdecab (diff) | |
download | mpv-053044741713eddc4aea024fb0c175aa01fc092d.tar.bz2 mpv-053044741713eddc4aea024fb0c175aa01fc092d.tar.xz |
Add prelimimary (basic, possibly broken) dvdnav support
This readds a more or less completely new dvdnav implementation, though
it's based on the code from before commit 41fbcee. Note that this is
rather basic, and might be broken or not quite usable in many cases.
Most importantly, navigation highlights are not correctly implemented.
This would require changes in the FFmpeg dvdsub decoder (to apply a
different internal CLUT), so supporting it is not really possible right
now. And in fact, I don't think I ever want to support it, because it's
a very small gain for a lot of work. Instead, mpv will display fake
highlights, which are an approximate bounding box around the real
highlights.
Some things like mouse input or switching audio/subtitles stream using
the dvdnav VM are not supported.
Might be quite fragile on transitions: if dvdnav initiates a transition,
and doesn't give us enough mpeg data to initialize video playback, the
player will just quit.
This is added only because some users seem to want it. I don't intend to
make mpv a good DVD player, so the very basic minimum will have to do.
How about you just convert your DVD to proper video files?
Diffstat (limited to 'mpvcore/player/sub.c')
-rw-r--r-- | mpvcore/player/sub.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mpvcore/player/sub.c b/mpvcore/player/sub.c index 2c6ec1dfc5..d3ce466121 100644 --- a/mpvcore/player/sub.c +++ b/mpvcore/player/sub.c @@ -133,7 +133,6 @@ void update_subtitles(struct MPContext *mpctx) static void set_dvdsub_fake_extradata(struct dec_sub *dec_sub, struct stream *st, int width, int height) { -#if HAVE_DVDREAD if (!st) return; @@ -169,7 +168,6 @@ static void set_dvdsub_fake_extradata(struct dec_sub *dec_sub, struct stream *st sub_set_extradata(dec_sub, s, strlen(s)); talloc_free(s); -#endif } void reinit_subs(struct MPContext *mpctx) |