X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fsync.c;h=04bdf162f36dac69cb0365a451548a2ada917d3b;hb=2654f65485b009783b79a0feb5bbd67e794ab8e1;hp=78252fb2766befb1edb0bbe41103ac6010809670;hpb=90fba27222b3467b91c29803f217c4d5335c7ad0;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/sync.c b/libhb/sync.c index 78252fb2..04bdf162 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -463,6 +463,26 @@ static int SyncVideo( hb_work_object_t * w ) * * fall through to display */ + if( ( sub->stop - sub->start ) < ( 3 * 90000 ) ) + { + /* + * Subtitle is on for less than three seconds, extend + * the time that it is displayed to make it easier + * to read. Make it 3 seconds or until the next + * subtitle is displayed. + * + * This is in response to Indochine which only + * displays subs for 1 second - too fast to read. + */ + sub->stop = sub->start + ( 3 * 90000 ); + + sub2 = hb_fifo_see2( pv->subtitle->fifo_raw ); + + if( sub2 && sub->stop > sub2->start ) + { + sub->stop = sub2->start; + } + } } else {