4 Commits
Author SHA1 Message Date
TheM14 7bab2c0c3c Route ad-joc-pcm inputs to ad_joc
The generated f_decoder_wrapper patch only switched to ad_joc when the
codec was E-AC-3. ad-joc-pcm=yes was read by the decoder but never had any
effect, because PCM/FLAC/TrueHD inputs still went to the default lavc
decoder.

Read ad_joc_params through mp_get_config_group(ad_joc_conf) and include
audio/decode/ad_joc.h in f_decoder_wrapper.c. Accessing p->opts for this
was wrong: p->opts is dec_wrapper_opts, not the global MPOpts, and the
build failed with "struct dec_wrapper_opts has no member named
ad_joc_params".

With this change, ad-joc-pcm=yes routes non-E-AC-3 codecs into ad_joc;
with no or the option absent, PCM is released to the default decoder.
E-AC-3 JOC is unchanged.

Rebuild mpv after this change; existing binaries still contain the old
eac3-only routing.
2026-11-13 15:55:59 +08:00
TheM14 9f698ad694 Route ad-joc-pcm inputs to ad_joc
The generated f_decoder_wrapper patch only switched to ad_joc when the
codec was E-AC-3.  ad-joc-pcm=yes was read by the decoder but never had
any effect, because PCM/FLAC/TrueHD inputs were still handed to the
default lavc decoder.

Extend the wrapper condition to select ad_joc for non-E-AC-3 codecs when
ad_joc_params->pcm is enabled.  With ad-joc-pcm=no (or the option absent)
those inputs continue through the default decoder.  The E-AC-3 JOC path
is unchanged.

Include audio/decode/ad_joc.h in f_decoder_wrapper.c so the generated
code can access ad_joc_params->pcm; options.h only forward-declares the
struct.  Rebuild mpv after this change; existing binaries still contain
the old eac3-only routing.
2026-11-13 15:31:31 +08:00
TheM14 95c4626abd Build the Windows fork in UCRT64, where LuaJIT is still published 2026-10-28 00:31:28 +08:00
TheM14 126e2cd233 Init mpv-joc 2026-10-18 21:31:38 +08:00