mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-23 01:57:50 +08:00
update src/Extension/H265.cpp.
This commit is contained in:
parent
b8019739d1
commit
1e6005d609
@ -1,4 +1,4 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
|
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
|
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
|
||||||
@ -88,6 +88,17 @@ float H265Track::getVideoFps() const {
|
|||||||
return _fps;
|
return _fps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void H265Track::flush() {
|
||||||
|
int w = 0;
|
||||||
|
int h = 0;
|
||||||
|
float fps = 0.0;
|
||||||
|
if(getHEVCInfo(_vps,_sps, w, h, fps)){
|
||||||
|
_width = w;
|
||||||
|
_height = h;
|
||||||
|
_fps = fps;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool H265Track::ready() {
|
bool H265Track::ready() {
|
||||||
return !_vps.empty() && !_sps.empty() && !_pps.empty();
|
return !_vps.empty() && !_sps.empty() && !_pps.empty();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user