changeset 31229:69dbfbd26e05

Fix subtitle display for http://samples.mplayerhq.hu/sub/largeres_vobsub.mkv
author reimar
date Mon, 31 May 2010 21:15:20 +0000
parents b07b7bf70b71
children 0a182f029587
files spudec.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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");