# HG changeset patch # User reimar # Date 1275340520 0 # Node ID 69dbfbd26e05c9cd513077ec8533faa1a5adc7e5 # Parent b07b7bf70b71a96343a0c0112d417edbb54cf8d7 Fix subtitle display for http://samples.mplayerhq.hu/sub/largeres_vobsub.mkv diff -r b07b7bf70b71 -r 69dbfbd26e05 spudec.c --- a/spudec.c Mon May 31 19:44:02 2010 +0000 +++ b/spudec.c Mon May 31 21:15:20 2010 +0000 @@ -1202,11 +1202,15 @@ 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");