From 6583e2869acd90e6f308ff2446da1a0e4f64943f Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Sun, 21 Jul 2024 19:21:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E5=8A=A0=E8=BD=BDh264?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=BD=AC=E6=B5=81=E5=AA=92=E4=BD=93=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=88=B3=E7=B2=BE=E5=87=86=20(#3691)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/tests/h264_media_server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/tests/h264_media_server.c b/api/tests/h264_media_server.c index 427afeaf..1fc4f982 100644 --- a/api/tests/h264_media_server.c +++ b/api/tests/h264_media_server.c @@ -29,9 +29,8 @@ static void on_h264_frame(void *user_data, mk_h264_splitter splitter, const char #else usleep(40 * 1000); #endif - static int dts = 0; + uint64_t dts = mk_util_get_current_millisecond(); mk_frame frame = mk_frame_create(MKCodecH264, dts, dts, data, size, NULL, NULL); - dts += 40; mk_media_input_frame((mk_media) user_data, frame); mk_frame_unref(frame); }