-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fragment aggregation #123
base: master
Are you sure you want to change the base?
Fragment aggregation #123
Conversation
…o OOM in the encapsulated heap
for (i = 0, pCurPtr = pBuffer + offset; i < size; i++, pCurPtr++) { | ||
CHK(EOF != FPUTC(*pCurPtr, fp), STATUS_WRITE_TO_FILE_FAILED); | ||
for (i = 0; i < size; i++, pBuffer++) { | ||
CHK(EOF != FPUTC(*pBuffer, fp), STATUS_WRITE_TO_FILE_FAILED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not the same as before right? Before we start writing at (pBuffer + offset)
, now we start writing at pBuffer
.
Looks like it should be a while loop anyway but if we keep the for loop let's set the range of i
to be from offset
to offset + size
and then in the FPUTC we can add i
to pBuffer
.
A number of ways to do it, but this change is different than what was there before.
@@ -795,6 +810,14 @@ STATUS putFrame(PKinesisVideoStream pKinesisVideoStream, PFrame pFrame) | |||
if (pKinesisVideoStream->resetGeneratorOnKeyFrame && CHECK_FRAME_FLAG_KEY_FRAME(pFrame->flags)) { | |||
CHK_STATUS(mkvgenResetGenerator(pKinesisVideoStream->pMkvGenerator)); | |||
pKinesisVideoStream->resetGeneratorOnKeyFrame = FALSE; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to add client locking/unlocking
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.