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; return false;
} }
void AACTrack::update() { bool AACTrack::update() {
parseAacConfig(_cfg, _sampleRate, _channel); return parseAacConfig(_cfg, _sampleRate, _channel);
} }
void AACTrack::onReady() { void AACTrack::onReady() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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