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

修复两个无符号int值的差值强转为有符号int发生溢出导致出现pts为负值,导致触发后续断言检查pts不能为负值的处理 #359

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daimalvtu
Copy link

修改rtsp-demuxer.文件中rtp解包组帧rtsp_demuxer_onh2645nalu函数中计算timestamp时,两个uint32_t的差值强转为int32_t导致溢出使得timestamp为负值并触发后续关于pts检查负值的断言问题

@ireader
Copy link
Owner

ireader commented Nov 5, 2024

时间戳相差很大,超过了最大整数的一半吗?

@daimalvtu
Copy link
Author

时间戳相差很大,超过了最大整数的一半吗?

对,出现了时间戳越变

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