-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
有些流具有多个 #269
base: master
Are you sure you want to change the base?
有些流具有多个 #269
Conversation
默认一个节目最多4个流(video + audio + subtitle + private stream)
|
对, 所以这里是否直接断言终止了有点不合理吧? |
还有假设一个节目4个流, 这时候就触发断言了阿 |
这里的逻辑是最多支持4个stream。 |
这里要根据实际情况来处理, 大部分场景下,4个stream就够了;如果源流确实有超过4个stream,可以把streams数组调大一些。 假如实际源流的单个节目中超过了4个stream,直接覆盖最后一个stream不是最好的处理策略,因为覆盖实际上意味着丢失了一路stream。 |
streams数组调大的确可以解决, 但是有时候是不知道track数量的, 有些流可能一个视频track带5-6个不同语言的音频track. |
有些流
pmt->stream_count == sizeof(pmt->streams) / sizeof(pmt->streams[0]) 这时不应该直接报错, 而是可以继续播放下去的