-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
solve audio timestamp bugs and video dts/pts bugs #1621
Conversation
|
||
//callback last media data in data buffer | ||
on_callback(callback, _last_pid, key_path, _last_dts, _last_pts); | ||
|
||
pes_parse(data_p+npos, npos, &ret_data_p, ret_size, _last_dts, _last_pts); | ||
pes_parse(data_p+npos, npos, &ret_data_p, ret_size, dts, pts); |
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.
No return value checked.
TRANS_BY_GPT3
_rtmp_queue.insert_rtmp_data((unsigned char*)data, size, (int64_t)dts, SrsFrameTypeAudio); | ||
rtmp_write_work(); | ||
} else { | ||
rtmp_write_packet(SrsFrameTypeAudio, dts, data, size); |
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.
You should check the return value, otherwise there may be unknown behavior.
TRANS_BY_GPT3
Codecov Report
@@ Coverage Diff @@
## 4.0release #1621 +/- ##
============================================
Coverage ? 68.6%
============================================
Files ? 96
Lines ? 40708
Branches ? 0
============================================
Hits ? 27927
Misses ? 12781
Partials ? 0
Continue to review full report at Codecov.
|
1,solve audio timestamp bugs;
2,solve video dts increase bugs