summaryrefslogtreecommitdiffstats
path: root/test/test.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-04-26 19:11:03 +0000
committerjstebbins <[email protected]>2012-04-26 19:11:03 +0000
commit143f723b12881a8ab3732386785a00840bb2c934 (patch)
treec1bfd505f424c241a34ed5f90e474efac637c4fc /test/test.c
parent3f9828657ded40e2eabfef8f01fa2182a4eccd36 (diff)
PGS (bluray) subtitle support \o/
Thanks to patches supplied by David Mitchell and Rob McMullen we finally have PGS support. I added a fix for libav pgs timestamp processing and detection of forced subtitles to their work, then made foreign audio search work with PGS subs. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4605 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test.c b/test/test.c
index 504a3507d..758dd0fa2 100644
--- a/test/test.c
+++ b/test/test.c
@@ -2229,11 +2229,10 @@ static int HandleEvents( hb_handle_t * h )
force = test_sub_list(subforce, i+1);
- int supports_burn =
- ( subtitle->source == VOBSUB ) ||
- ( subtitle->source == SSASUB );
+ int supports_burn = hb_subtitle_can_burn( subtitle->source );
- if ( burn && supports_burn )
+ if ( ( burn && supports_burn ) ||
+ !hb_subtitle_can_pass( subtitle->source, mux ) )
{
// Only allow one subtitle to be burned into video
if ( sub_burned )