]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10378: [freeswitch-core] VPX Tweaks
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Jun 2017 00:41:21 +0000 (19:41 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 8 Jun 2017 00:41:35 +0000 (19:41 -0500)
src/switch_vpx.c

index ce41fc8738f9fceddbc1df2c678bb3d33cf1c206..29289feac200804623679268c9a62ec9404c9208 100644 (file)
@@ -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;