mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 20:15:58 +08:00
修复H264/H265创建config帧异常问题(#3643)
https://github.com/ZLMediaKit/ZLMediaKit/pull/3611#issuecomment-2177535917
This commit is contained in:
@@ -236,8 +236,8 @@ void H264Track::setExtraData(const uint8_t *data, size_t bytes) {
|
||||
|
||||
bool H264Track::update() {
|
||||
_config_frames = std::vector<Frame::Ptr>{
|
||||
createConfigFrame<H264Frame>(_sps),
|
||||
createConfigFrame<H264Frame>(_pps)
|
||||
createConfigFrame<H264Frame>(_sps, 0, getIndex()),
|
||||
createConfigFrame<H264Frame>(_pps, 0, getIndex())
|
||||
};
|
||||
return getAVCInfo(_sps, _width, _height, _fps);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user