diff options
author | trav90 <travawine@palemoon.org> | 2018-10-15 22:47:27 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-10-15 22:47:27 -0500 |
commit | 26dc168e353d0e97f996371ddfed63140c864fb9 (patch) | |
tree | 1db3973c7b7a3b794e5b47e50838dfb4a5cec691 /dom/media/platforms/agnostic/AOMDecoder.cpp | |
parent | f4527895099011d28201126d470fa86523ced210 (diff) | |
download | UXP-26dc168e353d0e97f996371ddfed63140c864fb9.tar UXP-26dc168e353d0e97f996371ddfed63140c864fb9.tar.gz UXP-26dc168e353d0e97f996371ddfed63140c864fb9.tar.lz UXP-26dc168e353d0e97f996371ddfed63140c864fb9.tar.xz UXP-26dc168e353d0e97f996371ddfed63140c864fb9.zip |
Make AOMDecoder actually build
Diffstat (limited to 'dom/media/platforms/agnostic/AOMDecoder.cpp')
-rw-r--r-- | dom/media/platforms/agnostic/AOMDecoder.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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__); |