Keep track of stream last_pts. So we can at least try to sync streams

This commit is contained in:
Isaac Connor
2021-03-03 12:45:05 -05:00
parent 3149ba276f
commit eaaf04420a
3 changed files with 27 additions and 5 deletions

View File

@@ -55,6 +55,8 @@ Camera::Camera(
mAudioStream(nullptr),
mFormatContext(nullptr),
mSecondFormatContext(nullptr),
mLastVideoPTS(0),
mLastAudioPTS(0),
bytes(0)
{
linesize = width * colours;