update返回bool
This commit is contained in:
parent
a349a03ce9
commit
014398a4f7
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public:
|
|||
/**
|
||||
* 更新track信息,比如触发sps/pps解析
|
||||
*/
|
||||
virtual void update() {}
|
||||
virtual bool update() { return false; }
|
||||
|
||||
/**
|
||||
* 生成sdp
|
||||
|
|
|
|||
Loading…
Reference in New Issue