summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-06-30 23:38:26 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-06-30 23:38:26 +0200
commit659032b3d9f3cbc12e5353638246825e2bfcf7b7 (patch)
tree23d1d74f959755d4e6739a2b2f732595af82c9d1
parent27c0a9306e039506fd3b8ce75cd8eb551364e57d (diff)
downloadgstreamer-plugins-bad-659032b3d9f3cbc12e5353638246825e2bfcf7b7.tar.gz
openh264enc: Set frame timestamps before sending to the encoder
-rw-r--r--ext/openh264/gstopenh264enc.cpp2
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++;