Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 32d1029

Browse files
authored
Fix return values for CustomizedVideoDecoderProxy::Configure. (#667)
1 parent 5eadc0b commit 32d1029

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

talk/owt/sdk/base/customizedvideodecoderproxy.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,25 @@ bool CustomizedVideoDecoderProxy::Configure(const Settings& codec_settings) {
2525
if (external_decoder_) {
2626
if (codec_type_ == kVideoCodecH264 &&
2727
external_decoder_->InitDecodeContext(VideoCodec::kH264)) {
28-
return WEBRTC_VIDEO_CODEC_OK;
28+
return true;
2929
#ifdef WEBRTC_USE_H265
3030
} else if (codec_type_ == kVideoCodecH265 &&
3131
external_decoder_->InitDecodeContext(VideoCodec::kH265)) {
32-
return WEBRTC_VIDEO_CODEC_OK;
32+
return true;
3333
#endif
3434
} else if (codec_type_ == kVideoCodecVP8 &&
3535
external_decoder_->InitDecodeContext(VideoCodec::kVp8)) {
36-
return WEBRTC_VIDEO_CODEC_OK;
36+
return true;
3737
} else if (codec_type_ == kVideoCodecVP9 &&
3838
external_decoder_->InitDecodeContext(VideoCodec::kVp9)) {
39-
return WEBRTC_VIDEO_CODEC_OK;
39+
return true;
4040
} else if (codec_type_ == kVideoCodecAV1 &&
4141
external_decoder_->InitDecodeContext(VideoCodec::kAv1)) {
42-
return WEBRTC_VIDEO_CODEC_OK;
42+
return true;
4343
}
44-
return WEBRTC_VIDEO_CODEC_ERROR;
44+
return false;
4545
}
46-
return WEBRTC_VIDEO_CODEC_OK;
46+
return true;
4747
}
4848

4949
int32_t CustomizedVideoDecoderProxy::Decode(const EncodedImage& input_image,

0 commit comments

Comments
 (0)