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/decmpeg2.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/decmpeg2.c')
-rw-r--r-- | libhb/decmpeg2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/decmpeg2.c b/libhb/decmpeg2.c index 0c5d2ecf6..e2deae0ce 100644 --- a/libhb/decmpeg2.c +++ b/libhb/decmpeg2.c @@ -151,6 +151,8 @@ int hb_libmpeg2_decode( hb_libmpeg2_t * m, hb_buffer_t * buf_es, buf = hb_buffer_init( m->width * m->height * 3 / 2 ); data = buf->data; + buf->sequence = buf_es->sequence; + // Was a good break point found? if( chap_break ) { |