Skip to content
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

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Fragment aggregation #123

wants to merge 8 commits into from

Conversation

MushMal
Copy link
Contributor

@MushMal MushMal commented Mar 16, 2021

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.

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);
Copy link
Contributor

@hassanctech hassanctech Mar 18, 2021

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;

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants