summaryrefslogtreecommitdiffstats
path: root/libhb/scan.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-05-30 18:15:03 +0000
committerjstebbins <[email protected]>2010-05-30 18:15:03 +0000
commit6c2ab0ec0cef0c3f6cc2771ad28a3d86b8df61e0 (patch)
treebf0d6931b501b89b805bdd967778f7009b189a38 /libhb/scan.c
parent4e02d96c397f8912bda8ca975ffc398ccec77ca1 (diff)
preserve vobsub palette, width, and height from mkv and mp4 vobsub tracks
Thanks to davidfster for mp4 palette addition. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3337 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/scan.c')
-rw-r--r--libhb/scan.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libhb/scan.c b/libhb/scan.c
index a45829b15..68188a253 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -173,6 +173,22 @@ static void ScanFunc( void * _data )
j++;
}
+ if ( data->dvd )
+ {
+ // The subtitle width and height needs to be set to the
+ // title widht and height for DVDs. title width and
+ // height don't get set until we decode previews, so
+ // we can't set subtitle width/height till we get here.
+ for( j = 0; j < hb_list_count( title->list_subtitle ); j++ )
+ {
+ hb_subtitle_t *subtitle = hb_list_item( title->list_subtitle, j );
+ if ( subtitle->source == VOBSUB )
+ {
+ subtitle->width = title->width;
+ subtitle->height = title->height;
+ }
+ }
+ }
i++;
}