summaryrefslogtreecommitdiffstats
path: root/libhb/decsub.c
diff options
context:
space:
mode:
authoreddyg <[email protected]>2007-10-08 23:33:32 +0000
committereddyg <[email protected]>2007-10-08 23:33:32 +0000
commitb3178968037a18c721a66e2669ae6f040a12196a (patch)
tree98e31e044e92fc6eff6aa7121778df45e7c53df6 /libhb/decsub.c
parent803933145cbdd7681e3dcaa0124764657ecaea4f (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/decsub.c')
-rw-r--r--libhb/decsub.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/decsub.c b/libhb/decsub.c
index 2b76ecf29..209c1c80f 100644
--- a/libhb/decsub.c
+++ b/libhb/decsub.c
@@ -95,6 +95,11 @@ int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
/* We got a complete subtitle, decode it */
*buf_out = Decode( w );
+ if( buf_out && *buf_out )
+ {
+ (*buf_out)->sequence = in->sequence;
+ }
+
/* Wait for the next one */
pv->size_sub = 0;
pv->size_got = 0;