Closed Bug 1733109 Opened 3 years ago Closed 3 years ago

Fix some static analysis issues in media code

Categories

(Core :: Audio/Video, task)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: padenot, Assigned: padenot)

Details

Attachments

(21 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
No description provided.
Summary: Fix static analysis issues in media code → Fix some static analysis issues in media code

INT64_MAX is more than enough for this, no worries to have.

Depends on D126932

We don't use exceptions anyways, but having no warnings allows warning us when
warnings appear, so let's fix this.

Depends on D126939

Pushed by padenot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/88c9dbc265f6
use 'using' instead of 'typedef' in MediaDecoder.cpp. r=bryce
https://hg.mozilla.org/integration/autoland/rev/6b28a5600fee
'auto owner' can be declared as 'auto *owner' in MediaDecoder.cpp. r=bryce
https://hg.mozilla.org/integration/autoland/rev/42b69e6ec427
do not use 'else' after 'return' in MediaDecoder.cpp. r=bryce
https://hg.mozilla.org/integration/autoland/rev/15582a2f41e5
the parameter 'aSecondaryVideoContainer' is copied for each invocation but only used as a const reference; consider making it a const reference in MediaDecoder.cpp r=bryce
https://hg.mozilla.org/integration/autoland/rev/132e76589b5f
passing result of std::move() as a const reference argument; no move will actually happen in MediaDecoder.cpp. r=bryce
https://hg.mozilla.org/integration/autoland/rev/1507b273da3e
do not use 'else' after 'return' in MediaDecoder.cpp. r=bryce
https://hg.mozilla.org/integration/autoland/rev/7a15381e527d
narrowing conversion from 'size_t' in MediaDecoder.cpp. r=bryce
https://hg.mozilla.org/integration/autoland/rev/79212757b61c
function 'mozilla::MediaDecoder::OnSecondaryVideoContainerInstalled' has a definition with different parameter names in MediaDecoder.h. r=bryce
https://hg.mozilla.org/integration/autoland/rev/18b017cd25a7
constructor does not initialize these fields: mOwnerBrowsingContextId in HTMLMEdiaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/54ba215e9a51
narrowing conversion from 'double' to 'float' in HTMLMEdiaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/741870f29565
narrowing conversion from 'uint32_t' (aka 'unsigned int') to signed type 'int32_t' (aka 'int') is implementation-defined in HTMLMEdiaElement.cpp. r=alwu,emilio
https://hg.mozilla.org/integration/autoland/rev/e0e245487bbc
redundant return statement at the end of a function with a void return type in HTMLMediaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/b79004b0ba85
narrowing conversion from 'unsigned long' to signed type 'int32_t' (aka 'int') is implementation-defined HTMLMediaElement.cpp. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/9f55994889a3
move constructors should be marked noexcept HTMLMediaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/4e7e2b64ad12
'auto decoder' can be declared as 'auto *decoder' in HTMLMediaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/48edd55318a8
'auto decoder' can be declared as 'auto *decoder' in HTMLMediaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/2195c875c46d
local copy 'handle' of the variable 'aPrincipalHandle' is never modified; consider avoiding the copy in HTMLMediaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/f19ade0d6039
do not use 'else' after 'return' in HTMLMediaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/6f13eb57901f
'auto cdmProxy' can be declared as 'auto *cdmProxy' in HTMLMediaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/77bb7f9f9026
narrowing conversion from 'double' to 'float' in HTMLMediaElement.cpp. r=alwu
https://hg.mozilla.org/integration/autoland/rev/f15b78b88c6a
function 'mozilla::dom::HTMLMediaElement::MozGetMetadata' has a definition with different parameter names in HTMLMediaElement.cpp. r=alwu
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: