mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 14:56:55 +00:00
Fix subtitle display for http://samples.mplayerhq.hu/sub/largeres_vobsub.mkv
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31295 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9be39d0640
commit
ec955f02fd
4
spudec.c
4
spudec.c
@ -1202,11 +1202,15 @@ void *spudec_new_scaled(unsigned int *palette, unsigned int frame_width, unsigne
|
||||
spudec_parse_extradata(this, extradata, extradata_len);
|
||||
/* XXX Although the video frame is some size, the SPU frame is
|
||||
always maximum size i.e. 720 wide and 576 or 480 high */
|
||||
// For HD files in MKV the VobSub resolution can be higher though,
|
||||
// see largeres_vobsub.mkv
|
||||
if (this->orig_frame_width <= 720 && this->orig_frame_height <= 576) {
|
||||
this->orig_frame_width = 720;
|
||||
if (this->orig_frame_height == 480 || this->orig_frame_height == 240)
|
||||
this->orig_frame_height = 480;
|
||||
else
|
||||
this->orig_frame_height = 576;
|
||||
}
|
||||
}
|
||||
else
|
||||
mp_msg(MSGT_SPUDEC,MSGL_FATAL, "FATAL: spudec_init: calloc");
|
||||
|
Loading…
Reference in New Issue
Block a user