Corresponding source for the libmedia WASM files served by Local Player Web
(https://rankworld.co/player/), version 1.3.1-lgpl-20261120.
The WASM decoders are the same build as 1.3.1-lgpl-20261114 (BUILD-RECORD.md);
only the JavaScript player patches changed.

Licenses
- FFmpeg (zhaohappy/FFmpeg fork): LGPL-2.1-or-later code configured with
  --disable-gpl --enable-version3, so the libraries are LGPL-3.0-or-later.
  Source: ffmpeg-zhaohappy-a216f26.tar.gz next to this file.
- libmedia 1.3.1 (C glue, JavaScript player, SoundTouch-based stretchpitch):
  LGPL-3.0-or-later (SoundTouch: LGPL-2.1-or-later). Source: libmedia/.
- dav1d, libvpx, speex, zlib: BSD-style or zlib licenses. libmedia/lib/ holds
  the exact prebuilt static libraries that were linked, taken unchanged from
  libmedia at the same commit.

Contents
- libmedia/            libmedia 152f629d3021fd8013efa464fcb7b55f9fbe7753 with
                       submodules cheap 85cc79e0 and common 00c9c3c4
                       (prebuilt dist/, demo media and site omitted)
- patches/lgpl-build-scripts.patch  --enable-gpl -> --disable-gpl, and the
                       fixed BSS post-processing path
- patches/wasm-opt-bss.patch        one-line fix to cheap's wasm-opt.cjs
- patches/web-player-libmedia.mjs  the changes to the npm
                       @libmedia/avplayer 1.3.1 JavaScript bundle:
                       573.avplayer.js: Matroska A_MS/ACM WMA headers, and the
                       WMV3/WVC1/WMVA tags in V_MS/VFW/FOURCC tracks;
                       avplayer.js: VC-1 in the supported codec list, and WMA
                       v1/v2 streams keep their header bitrate in stream analysis.
                       Each function names the upstream source file it changes.
- tools/               the fixed wasm-opt-bss.cjs and its npm lockfile
- build-all-lgpl.sh    rebuilds every decoder and resampler
- BUILD-RECORD.md, lgpl-build-manifest.json  inputs, hashes and verification

Rebuild
1. Install emsdk 3.1.67 and activate it.
2. Extract ffmpeg-zhaohappy-a216f26.tar.gz as ../FFmpeg next to libmedia/,
   or point the libmedia build scripts at it.
3. cd libmedia && git apply ../patches/lgpl-build-scripts.patch
   (or patch -p1 < ../patches/lgpl-build-scripts.patch)
4. (cd tools && npm ci)
5. bash build-all-lgpl.sh   # writes libmedia/dist/{decode,resample}
6. bash libmedia/build/build-stretchpitch.sh 1 1 0  (and 0 0 0) for stretchpitch.
To use a modified FFmpeg, change the FFmpeg tree and rerun the same steps.
The web player loads decoders from /player/vendor/libmedia/<version>/, so
replacing those files in a copy of the web player relinks it.
