ref: e061bb3fc94ac50ae32bd3a9d1ca05a83ab93995
parent: c19db25043ffa1cc3971eddcb875cfe915fef96f
author: ruil2 <[email protected]>
date: Mon Nov 3 12:05:38 EST 2014
pass each frame timestamp to codec
--- 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();
const SSourcePicture* pics = &src;
int result = encoder_->EncodeFrame (pics, &encoded);