openh264enc: Set frame timestamps before sending to the encoder
authorSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jun 2016 21:38:26 +0000 (23:38 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 30 Jun 2016 21:38:26 +0000 (23:38 +0200)
ext/openh264/gstopenh264enc.cpp

index 1346b4b..de4a70d 100644 (file)
@@ -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++;