From 26dc168e353d0e97f996371ddfed63140c864fb9 Mon Sep 17 00:00:00 2001 From: trav90 Date: Mon, 15 Oct 2018 22:47:27 -0500 Subject: Make AOMDecoder actually build --- dom/media/platforms/agnostic/AOMDecoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dom/media') diff --git a/dom/media/platforms/agnostic/AOMDecoder.cpp b/dom/media/platforms/agnostic/AOMDecoder.cpp index 30077ee03..f3e8c7450 100644 --- a/dom/media/platforms/agnostic/AOMDecoder.cpp +++ b/dom/media/platforms/agnostic/AOMDecoder.cpp @@ -49,10 +49,10 @@ AOMDecoder::Init() { int decode_threads = 2; aom_codec_iface_t* dx = aom_codec_av1_dx(); - if (aInfo.mDisplay.width >= 2048) { + if (mInfo.mDisplay.width >= 2048) { decode_threads = 8; } - else if (aInfo.mDisplay.width >= 1024) { + else if (mInfo.mDisplay.width >= 1024) { decode_threads = 4; } decode_threads = std::min(decode_threads, PR_GetNumberOfProcessors()); @@ -64,7 +64,7 @@ AOMDecoder::Init() aom_codec_flags_t flags = 0; - if (!dx || aom_codec_dec_init(aCtx, dx, &config, flags) { + if (!dx || aom_codec_dec_init(&mCodec, dx, &config, flags)) { return InitPromise::CreateAndReject(NS_ERROR_DOM_MEDIA_FATAL_ERR, __func__); } return InitPromise::CreateAndResolve(TrackInfo::kVideoTrack, __func__); -- cgit v1.2.3