diff options
author | jstebbins <[email protected]> | 2014-01-26 18:01:50 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-01-26 18:01:50 +0000 |
commit | 96fbc744385ddcc15617ba449d1521c30f66da3d (patch) | |
tree | 00a351c416a2307e511042d0a86bf4d3a2bfe7d1 /libhb/decpgssub.c | |
parent | 1d7db22df59be148ed995eee7755f21d8f0b9d5b (diff) |
Replace invaled timestamp flag "-1" with AV_NOPTS
-1 is not a good value as a flag for invalid timestamps.
There are cases where small negative timestamps are useful.
So this eliminates a potential ambiguity.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6001 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/decpgssub.c')
-rw-r--r-- | libhb/decpgssub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/decpgssub.c b/libhb/decpgssub.c index aac70db2e..8ac87ea0e 100644 --- a/libhb/decpgssub.c +++ b/libhb/decpgssub.c @@ -211,7 +211,7 @@ static int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in, avp.data = in->data; avp.size = in->size; // libav wants pkt pts in AV_TIME_BASE units - if (in->s.start != -1) + if (in->s.start != AV_NOPTS_VALUE) { avp.pts = av_rescale(in->s.start, AV_TIME_BASE, 90000); } @@ -378,7 +378,7 @@ static int decsubWork( hb_work_object_t * w, hb_buffer_t ** buf_in, out->s.frametype = HB_FRAME_SUBTITLE; out->sequence = in->sequence; } - out->s.renderOffset = -1; + out->s.renderOffset = AV_NOPTS_VALUE; out->s.start = out->s.stop = pts; } else |