diff options
author | John Stebbins <[email protected]> | 2016-05-17 14:45:14 -0600 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-05-17 14:45:14 -0600 |
commit | 617689bbb0bf44ac0dc0b86631581591dc472883 (patch) | |
tree | 3b7775ebceabf8a4ab79b97be51f41a0f4bbd82b /libhb | |
parent | c5f0ac5f6375f8486569ef0ba8936a07dc87eced (diff) |
sync: fix conversions of AV_NOPTS_VALUE to double
The way the constant is defined requires an (int64_t) cast to force it
to be signed.
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/sync.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index 6d29d77df..ca7a4063f 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -187,7 +187,7 @@ static void allSlip( sync_common_t * common, int64_t delta ) for (ii = 0; ii < common->stream_count; ii++) { common->streams[ii].pts_slip += delta; - if (common->streams[ii].next_pts != AV_NOPTS_VALUE) + if (common->streams[ii].next_pts != (int64_t)AV_NOPTS_VALUE) { common->streams[ii].next_pts -= delta; } @@ -960,7 +960,7 @@ static void OutputBuffer( sync_common_t * common ) break; } - if (out_stream->next_pts == AV_NOPTS_VALUE) + if (out_stream->next_pts == (int64_t)AV_NOPTS_VALUE) { // Initialize next_pts, it is used to make timestamp corrections buf = hb_list_item(out_stream->in_queue, 0); @@ -1250,7 +1250,7 @@ static int InitAudio( sync_common_t * common, int index ) if (pv->stream->delta_list == NULL) goto fail; pv->stream->type = SYNC_TYPE_AUDIO; pv->stream->first_pts = AV_NOPTS_VALUE; - pv->stream->next_pts = AV_NOPTS_VALUE; + pv->stream->next_pts = (int64_t)AV_NOPTS_VALUE; pv->stream->audio.audio = audio; pv->stream->fifo_in = audio->priv.fifo_raw; @@ -1334,7 +1334,7 @@ static int InitSubtitle( sync_common_t * common, int index ) if (pv->stream->delta_list == NULL) goto fail; pv->stream->type = SYNC_TYPE_SUBTITLE; pv->stream->first_pts = AV_NOPTS_VALUE; - pv->stream->next_pts = AV_NOPTS_VALUE; + pv->stream->next_pts = (int64_t)AV_NOPTS_VALUE; pv->stream->subtitle.subtitle = subtitle; pv->stream->fifo_in = subtitle->fifo_raw; @@ -1429,7 +1429,7 @@ static int syncVideoInit( hb_work_object_t * w, hb_job_t * job) if (pv->stream->delta_list == NULL) goto fail; pv->stream->type = SYNC_TYPE_VIDEO; pv->stream->first_pts = AV_NOPTS_VALUE; - pv->stream->next_pts = AV_NOPTS_VALUE; + pv->stream->next_pts = (int64_t)AV_NOPTS_VALUE; pv->stream->fifo_in = job->fifo_raw; w->fifo_in = job->fifo_raw; |