diff options
author | eddyg <[email protected]> | 2007-10-08 23:33:32 +0000 |
---|---|---|
committer | eddyg <[email protected]> | 2007-10-08 23:33:32 +0000 |
commit | b3178968037a18c721a66e2669ae6f040a12196a (patch) | |
tree | 98e31e044e92fc6eff6aa7121778df45e7c53df6 /libhb/work.c | |
parent | 803933145cbdd7681e3dcaa0124764657ecaea4f (diff) |
Don't drop subtitles when crossing PTS discontinuities by using buffer sequence numbers to determine where in the stream the buffer came from.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1011 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/work.c')
-rw-r--r-- | libhb/work.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libhb/work.c b/libhb/work.c index 8bf8a4eac..535deb0fe 100644 --- a/libhb/work.c +++ b/libhb/work.c @@ -617,9 +617,12 @@ static void do_job( hb_job_t * job, int cpu_count ) subtitle_lowest_id = subtitle->id; } - if ( subtitle->forced_hits > 0 ) + if( subtitle->forced_hits > 0 ) { - subtitle_forced_id = subtitle->id; + if( subtitle_forced_id == 0 ) + { + subtitle_forced_id = subtitle->id; + } } } |