pass each frame timestamp to codec
This commit is contained in:
parent
c19db25043
commit
e061bb3fc9
@ -382,7 +382,7 @@ class OpenH264VideoEncoder : public GMPVideoEncoder {
|
|||||||
src.pData[3] = nullptr;
|
src.pData[3] = nullptr;
|
||||||
src.iPicWidth = inputImage->Width();
|
src.iPicWidth = inputImage->Width();
|
||||||
src.iPicHeight = inputImage->Height();
|
src.iPicHeight = inputImage->Height();
|
||||||
|
src.uiTimeStamp = inputImage->Timestamp();
|
||||||
const SSourcePicture* pics = &src;
|
const SSourcePicture* pics = &src;
|
||||||
|
|
||||||
int result = encoder_->EncodeFrame (pics, &encoded);
|
int result = encoder_->EncodeFrame (pics, &encoded);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user