This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -25,25 +25,25 @@ bool CustomizedVideoDecoderProxy::Configure(const Settings& codec_settings) {
25
25
if (external_decoder_) {
26
26
if (codec_type_ == kVideoCodecH264 &&
27
27
external_decoder_->InitDecodeContext (VideoCodec::kH264 )) {
28
- return WEBRTC_VIDEO_CODEC_OK ;
28
+ return true ;
29
29
#ifdef WEBRTC_USE_H265
30
30
} else if (codec_type_ == kVideoCodecH265 &&
31
31
external_decoder_->InitDecodeContext (VideoCodec::kH265 )) {
32
- return WEBRTC_VIDEO_CODEC_OK ;
32
+ return true ;
33
33
#endif
34
34
} else if (codec_type_ == kVideoCodecVP8 &&
35
35
external_decoder_->InitDecodeContext (VideoCodec::kVp8 )) {
36
- return WEBRTC_VIDEO_CODEC_OK ;
36
+ return true ;
37
37
} else if (codec_type_ == kVideoCodecVP9 &&
38
38
external_decoder_->InitDecodeContext (VideoCodec::kVp9 )) {
39
- return WEBRTC_VIDEO_CODEC_OK ;
39
+ return true ;
40
40
} else if (codec_type_ == kVideoCodecAV1 &&
41
41
external_decoder_->InitDecodeContext (VideoCodec::kAv1 )) {
42
- return WEBRTC_VIDEO_CODEC_OK ;
42
+ return true ;
43
43
}
44
- return WEBRTC_VIDEO_CODEC_ERROR ;
44
+ return false ;
45
45
}
46
- return WEBRTC_VIDEO_CODEC_OK ;
46
+ return true ;
47
47
}
48
48
49
49
int32_t CustomizedVideoDecoderProxy::Decode (const EncodedImage& input_image,
You can’t perform that action at this time.
0 commit comments