shithub: openh264

Download patch

ref: fe55d5a208bc9d450f7b63a581795edeec47c3ac
parent: 18ed25fbb37e687a3089ce738b63ef20d4873aaf
author: ruil2 <ruil2@cisco.com>
date: Tue Nov 4 06:28:35 EST 2014

update timestamp unit as millisecond

--- a/module/gmp-openh264.cpp
+++ b/module/gmp-openh264.cpp
@@ -382,7 +382,7 @@
     src.pData[3] = nullptr;
     src.iPicWidth = inputImage->Width();
     src.iPicHeight = inputImage->Height();
-    src.uiTimeStamp = inputImage->Timestamp();
+    src.uiTimeStamp = inputImage->Timestamp()/1000; //encoder needs millisecond
     const SSourcePicture* pics = &src;
 
     int result = encoder_->EncodeFrame (pics, &encoded);