diff options
author | wm4 <wm4@nowhere> | 2014-02-13 22:54:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-13 22:54:47 +0100 |
commit | 2a2dfd232707ae05254cd0dcb75aac933e9fcf7d (patch) | |
tree | 12e3b4135df00636231ee90734868212f8f5834a /demux/stheader.h | |
parent | 8009646583d523fc045d10c726a3ee11d9d3d3ff (diff) | |
download | mpv-2a2dfd232707ae05254cd0dcb75aac933e9fcf7d.tar.bz2 mpv-2a2dfd232707ae05254cd0dcb75aac933e9fcf7d.tar.xz |
sub: handle vobsub-in-mp4
The mplayer decoder (spudec.c) actually handled this. There was explicit
code for binary palettes (16 32 bit values), and the subtitle resolution
was handled by video resolution coincidentally matching the subtitle
resolution.
Whoever puts vobsub into mp4 should be punished.
Fixes the sample gundam_sample.mp4, closes github issue #547.
Diffstat (limited to 'demux/stheader.h')
-rw-r--r-- | demux/stheader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/demux/stheader.h b/demux/stheader.h index 25f60ba032..177bf50b39 100644 --- a/demux/stheader.h +++ b/demux/stheader.h @@ -87,6 +87,7 @@ typedef struct sh_video { typedef struct sh_sub { unsigned char *extradata; // extra header data passed from demuxer int extradata_len; + int w, h; // mp4 vobsubs int frame_based; // timestamps are frame-based bool is_utf8; // if false, subtitle packet charset is unknown struct ass_track *track; // loaded by libass |