diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-06-30 23:38:26 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-06-30 23:38:26 +0200 |
commit | 659032b3d9f3cbc12e5353638246825e2bfcf7b7 (patch) | |
tree | 23d1d74f959755d4e6739a2b2f732595af82c9d1 /ext | |
parent | 27c0a9306e039506fd3b8ce75cd8eb551364e57d (diff) | |
download | gstreamer-plugins-bad-659032b3d9f3cbc12e5353638246825e2bfcf7b7.tar.gz |
openh264enc: Set frame timestamps before sending to the encoder
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openh264/gstopenh264enc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp index 1346b4bc8..de4a70d0c 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++; |