mozavcodec.dll Error in Windows 10 and 11: Firefox media codec errors

A Firefox media tab closes or cannot decode an approved video and diagnostics name mozavcodec.dll.
What this DLL does
This filename is associated with media codec support in some Mozilla application packages.
Start with this check
Compare a trusted local test clip or another supported video site. Record whether only one format or media source fails.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Update the approved Mozilla application. If only one source fails, check its supported format and provider guidance before changing Windows codecs.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Play the original authorized media and a known-good sample and verify picture and audio.
For a related check, see mfplat.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: Mozilla’s Firefox troubleshooting guide.