]> granicus.if.org Git - libvpx/commitdiff
Fixing constant value used to calculate frame pts and duration.
authorDmitry Kovalev <dkovalev@google.com>
Sat, 26 Apr 2014 00:39:48 +0000 (17:39 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Sat, 26 Apr 2014 00:39:48 +0000 (17:39 -0700)
Change-Id: Idbd017d1b42f7fdc7b1ce4e00370f5229800abd7

vp8/vp8_cx_iface.c
vp9/vp9_cx_iface.c

index 6ca6087b27a9159c25ff9507d27d90f5641d5b4c..501dd3eb4acacb857e00cd72c49a8509f3d1c0a9 100644 (file)
@@ -886,7 +886,7 @@ static vpx_codec_err_t vp8e_encode(vpx_codec_alg_priv_t  *ctx,
                 VP8_COMP *cpi = (VP8_COMP *)ctx->cpi;
 
                 /* Add the frame packet to the list of returned packets. */
-                round = (vpx_codec_pts_t)1000000
+                round = (vpx_codec_pts_t)10000000
                         * ctx->cfg.g_timebase.num / 2 - 1;
                 delta = (dst_end_time_stamp - dst_time_stamp);
                 pkt.kind = VPX_CODEC_CX_FRAME_PKT;
index 1ca9fb93ac118259281bec90d85be83115a9f928..f7c0a6463c4a28ec44d9f4949f5c5fbf2c10769d 100644 (file)
@@ -818,7 +818,7 @@ static vpx_codec_err_t encoder_encode(vpx_codec_alg_priv_t  *ctx,
         }
 
         // Add the frame packet to the list of returned packets.
-        round = (vpx_codec_pts_t)1000000 * ctx->cfg.g_timebase.num / 2 - 1;
+        round = (vpx_codec_pts_t)10000000 * ctx->cfg.g_timebase.num / 2 - 1;
         delta = (dst_end_time_stamp - dst_time_stamp);
         pkt.kind = VPX_CODEC_CX_FRAME_PKT;
         pkt.data.frame.pts =