Files
mpv-joc/fork/tools
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
..
2026-10-18 21:31:38 +08:00