C++20 fixes.
ABSL_CONST_INIT must be on definitions, not just declarations. Bug: chromium:1284275 Change-Id: If57064ab9417df38f770c59e50be93a104748b72 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/263282 Auto-Submit: Peter Kasting <pkasting@chromium.org> Reviewed-by: Rasmus Brandt <brandtr@webrtc.org> Commit-Queue: Rasmus Brandt <brandtr@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36994}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
ff0c0339a2
commit
0921d1e5c1
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
namespace webrtc {
|
namespace webrtc {
|
||||||
|
|
||||||
const bool kIsLibaomAv1DecoderSupported = false;
|
ABSL_CONST_INIT const bool kIsLibaomAv1DecoderSupported = false;
|
||||||
|
|
||||||
std::unique_ptr<VideoDecoder> CreateLibaomAv1Decoder() {
|
std::unique_ptr<VideoDecoder> CreateLibaomAv1Decoder() {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
@ -20,7 +20,7 @@ std::unique_ptr<VideoEncoder> CreateLibaomAv1EncoderIfSupported() {
|
|||||||
return CreateLibaomAv1Encoder();
|
return CreateLibaomAv1Encoder();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
const bool kIsLibaomAv1EncoderSupported = false;
|
ABSL_CONST_INIT const bool kIsLibaomAv1EncoderSupported = false;
|
||||||
std::unique_ptr<VideoEncoder> CreateLibaomAv1EncoderIfSupported() {
|
std::unique_ptr<VideoEncoder> CreateLibaomAv1EncoderIfSupported() {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user