From 00ab2b40b46c83ba5170bb50e4ec5c1bee871537 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 7 Jun 2017 19:41:21 -0500 Subject: [PATCH] FS-10378: [freeswitch-core] VPX Tweaks --- src/switch_vpx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/switch_vpx.c b/src/switch_vpx.c index 89c582841d..db90c1bfa0 100644 --- a/src/switch_vpx.c +++ b/src/switch_vpx.c @@ -410,7 +410,7 @@ static switch_status_t init_encoder(switch_codec_t *codec) context->start_time = switch_micro_time_now(); config->g_timebase.num = 1; - config->g_timebase.den = 90000; + config->g_timebase.den = 1000;//90000; config->g_pass = VPX_RC_ONE_PASS; config->g_w = context->codec_settings.video.width; config->g_h = context->codec_settings.video.height; @@ -859,8 +859,8 @@ static switch_status_t switch_vpx_encode(switch_codec_t *codec, switch_frame_t * context->framecount++; - //pts = (now - context->start_time) / 1000; - pts = frame->timestamp; + pts = (now - context->start_time) / 1000; + //pts = frame->timestamp; dur = context->last_ms ? (now - context->last_ms) / 1000 : pts;