From: Sebastian Dröge Date: Thu, 30 Jun 2016 21:38:26 +0000 (+0200) Subject: openh264enc: Set frame timestamps before sending to the encoder X-Git-Tag: 1.10.4~517 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=659032b3d9f3cbc12e5353638246825e2bfcf7b7;p=platform%2Fupstream%2Fgst-plugins-bad.git openh264enc: Set frame timestamps before sending to the encoder --- 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++;