Explicitly enable CDEF
It should already be enabled by default in libaom, but explicitly enable it here in case that changes. Bug: None Change-Id: I93a1dfc92f9c02bc5ec823c326d8cf6ff163bceb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/184262 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Emil Lundmark <lndmrk@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32114}
This commit is contained in:

committed by
Commit Bot

parent
fa54364cea
commit
7d73c6cf9d
@ -223,6 +223,12 @@ int LibaomAv1Encoder::InitEncode(const VideoCodec* codec_settings,
|
|||||||
<< " on control AV1E_SET_CPUUSED.";
|
<< " on control AV1E_SET_CPUUSED.";
|
||||||
return WEBRTC_VIDEO_CODEC_ERROR;
|
return WEBRTC_VIDEO_CODEC_ERROR;
|
||||||
}
|
}
|
||||||
|
ret = aom_codec_control(&ctx_, AV1E_SET_ENABLE_CDEF, 1);
|
||||||
|
if (ret != AOM_CODEC_OK) {
|
||||||
|
RTC_LOG(LS_WARNING) << "LibaomAv1Encoder::EncodeInit returned " << ret
|
||||||
|
<< " on control AV1E_SET_ENABLE_CDEF.";
|
||||||
|
return WEBRTC_VIDEO_CODEC_ERROR;
|
||||||
|
}
|
||||||
ret = aom_codec_control(&ctx_, AV1E_SET_ENABLE_TPL_MODEL, 0);
|
ret = aom_codec_control(&ctx_, AV1E_SET_ENABLE_TPL_MODEL, 0);
|
||||||
if (ret != AOM_CODEC_OK) {
|
if (ret != AOM_CODEC_OK) {
|
||||||
RTC_LOG(LS_WARNING) << "LibaomAv1Encoder::EncodeInit returned " << ret
|
RTC_LOG(LS_WARNING) << "LibaomAv1Encoder::EncodeInit returned " << ret
|
||||||
|
Reference in New Issue
Block a user