diff options
author | jstebbins <[email protected]> | 2014-04-06 16:53:32 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-04-06 16:53:32 +0000 |
commit | 38ad952258cb9f8231f9e8093805bf21da6ca307 (patch) | |
tree | ca255f99facef20f0170a8e50ddb590a626f4ee7 /libhb/decpgssub.c | |
parent | 0fb6f4a009f4d61b5695416d5bc7cd7c4405debf (diff) |
pgssubs: fix pgs passthru
Subtitles were being dropped because of the new condition I added that
drops subtitles when start == end.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6152 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decpgssub.c')
-rw-r--r-- | libhb/decpgssub.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/libhb/decpgssub.c b/libhb/decpgssub.c index 7ea2a0122..3df1cc439 100644 --- a/libhb/decpgssub.c +++ b/libhb/decpgssub.c @@ -379,7 +379,8 @@ static int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in, out->sequence = in->sequence; } out->s.renderOffset = AV_NOPTS_VALUE; - out->s.start = out->s.stop = pts; + out->s.stop = AV_NOPTS_VALUE; + out->s.start = pts; } else { @@ -393,13 +394,14 @@ static int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in, out = hb_frame_buffer_init(AV_PIX_FMT_YUVA420P, rect->w, rect->h); - out->s.frametype = HB_FRAME_SUBTITLE; - out->s.id = in->s.id; - out->sequence = in->sequence; - out->s.start = pts; - out->s.stop = pts; - out->f.x = rect->x; - out->f.y = rect->y; + out->s.frametype = HB_FRAME_SUBTITLE; + out->s.id = in->s.id; + out->sequence = in->sequence; + out->s.start = pts; + out->s.stop = AV_NOPTS_VALUE; + out->s.renderOffset = AV_NOPTS_VALUE; + out->f.x = rect->x; + out->f.y = rect->y; uint8_t *lum = out->plane[0].data; uint8_t *chromaU = out->plane[1].data; |