pass each frame timestamp to codec

This commit is contained in:
ruil2 2014-11-03 17:05:38 +08:00
parent c19db25043
commit e061bb3fc9

View File

@ -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);