summaryrefslogtreecommitdiffstats
path: root/libhb/decavcodec.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2015-12-26 17:45:37 -0700
committerJohn Stebbins <[email protected]>2015-12-26 17:46:15 -0700
commit4e396c75f8e310a90c86d7f540d33261e70cb7c1 (patch)
tree84d9184a55d9b835dda3c46dfe80cd3102f604db /libhb/decavcodec.c
parent62fba0145cf1e1f4167ab713632c85815911cb59 (diff)
libhb: use LL for int64 constants to make mingw happy
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r--libhb/decavcodec.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index ab8011922..af4349ec3 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -1912,7 +1912,7 @@ static int decavcodecvWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
static void compute_frame_duration( hb_work_private_t *pv )
{
double duration = 0.;
- int64_t max_fps = 64L;
+ int64_t max_fps = 64LL;
// context->time_base may be in fields, so set the max *fields* per second
if ( pv->context->ticks_per_frame > 1 )
@@ -1942,14 +1942,14 @@ static void compute_frame_duration( hb_work_private_t *pv )
// Because the time bases are so screwed up, we only take values
// in the range 8fps - 64fps.
AVRational *tb = NULL;
- if ( st->avg_frame_rate.den * 64L > st->avg_frame_rate.num &&
- st->avg_frame_rate.num > st->avg_frame_rate.den * 8L )
+ if ( st->avg_frame_rate.den * 64LL > st->avg_frame_rate.num &&
+ st->avg_frame_rate.num > st->avg_frame_rate.den * 8LL )
{
tb = &(st->avg_frame_rate);
duration = (double)tb->den / (double)tb->num;
}
- else if ( st->time_base.num * 64L > st->time_base.den &&
- st->time_base.den > st->time_base.num * 8L )
+ else if ( st->time_base.num * 64LL > st->time_base.den &&
+ st->time_base.den > st->time_base.num * 8LL )
{
tb = &(st->time_base);
duration = (double)tb->num / (double)tb->den;
@@ -1957,7 +1957,7 @@ static void compute_frame_duration( hb_work_private_t *pv )
}
if ( !duration &&
pv->context->time_base.num * max_fps > pv->context->time_base.den &&
- pv->context->time_base.den > pv->context->time_base.num * 8L )
+ pv->context->time_base.den > pv->context->time_base.num * 8LL )
{
duration = (double)pv->context->time_base.num /
(double)pv->context->time_base.den;
@@ -1972,7 +1972,7 @@ static void compute_frame_duration( hb_work_private_t *pv )
else
{
if ( pv->context->time_base.num * max_fps > pv->context->time_base.den &&
- pv->context->time_base.den > pv->context->time_base.num * 8L )
+ pv->context->time_base.den > pv->context->time_base.num * 8LL )
{
duration = (double)pv->context->time_base.num /
(double)pv->context->time_base.den;