From 659032b3d9f3cbc12e5353638246825e2bfcf7b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 30 Jun 2016 23:38:26 +0200 Subject: [PATCH] openh264enc: Set frame timestamps before sending to the encoder --- ext/openh264/gstopenh264enc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp index 1346b4b..de4a70d 100644 --- a/ext/openh264/gstopenh264enc.cpp +++ b/ext/openh264/gstopenh264enc.cpp @@ -764,7 +764,7 @@ gst_openh264enc_handle_frame (GstVideoEncoder * encoder, } //fill default src_pic src_pic->iColorFormat = videoFormatI420; - src_pic->uiTimeStamp = 0; + src_pic->uiTimeStamp = frame->pts / GST_MSECOND; } openh264enc->frame_count++; -- 2.7.4