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

This commit is contained in:
Isaac Connor committed 2021-03-03 12:45:05 -05:00
1 parent 3149ba276f
commit eaaf04420a
3 files changed
+27 -5

No files matched your search

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