mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
修复h265关键帧判断逻辑bug
This commit is contained in:
parent
821b0e4bb6
commit
1cddc2227b
@ -70,7 +70,9 @@ public:
|
||||
bool keyFrame() const override {
|
||||
auto nal_ptr = (uint8_t *) this->data() + this->prefixSize();
|
||||
auto type = H265_TYPE(*nal_ptr);
|
||||
return (type == NAL_IDR_N_LP || type == NAL_IDR_W_RADL) && decodeAble();
|
||||
// 参考自FFmpeg: IRAP VCL NAL unit types span the range
|
||||
// [BLA_W_LP (16), RSV_IRAP_VCL23 (23)].
|
||||
return (type >= NAL_BLA_W_LP && type <= NAL_RSV_IRAP_VCL23) && decodeAble() ;
|
||||
}
|
||||
|
||||
bool configFrame() const override {
|
||||
|
Loading…
Reference in New Issue
Block a user