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

unittest: pass Non IDR frame to decode after flush #6

Open
wants to merge 3 commits into
base: zero_copy
Choose a base branch
from

Conversation

LindaYu17
Copy link

this is used to verify yami's robustness

Signed-off-by: Linda Yu [email protected]

int32_t inFrames = 0;
int32_t outFrames = 0;

for (int i = 0; i < size; i++) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will flush every frame, it does not simulate the real case. It's better to change to this: Suppose we have N frame, we flush the decoder at frame 1 and play to end, seek to begin and flush at frame 2 ..etc

@LindaYu17
Copy link
Author

@xuguangxin updated!

this is used to verify yami's robustness

Signed-off-by: Linda Yu <[email protected]>
if the frist frame of a new stream is not idr, return invalid data
directly but not process it.

Signed-off-by: Linda Yu <[email protected]>
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