update返回bool

This commit is contained in:
xia-chu 2023-11-07 23:31:28 +08:00
parent a349a03ce9
commit 014398a4f7
7 changed files with 10 additions and 10 deletions

View File

@ -332,8 +332,8 @@ bool AACTrack::inputFrame_l(const Frame::Ptr &frame) {
return false;
}
void AACTrack::update() {
parseAacConfig(_cfg, _sampleRate, _channel);
bool AACTrack::update() {
return parseAacConfig(_cfg, _sampleRate, _channel);
}
void AACTrack::onReady() {

View File

@ -52,7 +52,7 @@ public:
int getAudioSampleRate() const override;
int getAudioSampleBit() const override;
bool inputFrame(const Frame::Ptr &frame) override;
void update() override;
bool update() override;
private:
void onReady();

View File

@ -168,8 +168,8 @@ bool H264Track::inputFrame(const Frame::Ptr &frame) {
return ret;
}
void H264Track::update() {
getAVCInfo(_sps, _width, _height, _fps);
bool H264Track::update() {
return getAVCInfo(_sps, _width, _height, _fps);
}
void H264Track::onReady() {

View File

@ -128,7 +128,7 @@ public:
int getVideoWidth() const override;
float getVideoFps() const override;
bool inputFrame(const Frame::Ptr &frame) override;
void update() override;
bool update() override;
private:
void onReady();

View File

@ -144,8 +144,8 @@ bool H265Track::inputFrame_l(const Frame::Ptr &frame) {
return ret;
}
void H265Track::update() {
getHEVCInfo(_vps, _sps, _width, _height, _fps);
bool H265Track::update() {
return getHEVCInfo(_vps, _sps, _width, _height, _fps);
}
void H265Track::onReady() {

View File

@ -150,7 +150,7 @@ public:
int getVideoHeight() const override;
float getVideoFps() const override;
bool inputFrame(const Frame::Ptr &frame) override;
void update() override;
bool update() override;
private:
void onReady();

View File

@ -42,7 +42,7 @@ public:
/**
* track信息sps/pps解析
*/
virtual void update() {}
virtual bool update() { return false; }
/**
* sdp