mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
audio: refactor: work towards unentangling audio decoding and filtering
Similar to the video path. dec_audio.c now handles decoding only. It also looks very similar to dec_video.c, and actually contains some of the rewritten code from it. (A further goal might be unifying the decoders, I guess.) High potential for regressions.
This commit is contained in:
@@ -889,8 +889,8 @@ static double find_best_speed(struct MPContext *mpctx, double vsync)
|
||||
|
||||
static bool using_spdif_passthrough(struct MPContext *mpctx)
|
||||
{
|
||||
if (mpctx->d_audio && mpctx->d_audio->afilter)
|
||||
return !af_fmt_is_pcm(mpctx->d_audio->afilter->input.format);
|
||||
if (mpctx->ao_chain)
|
||||
return !af_fmt_is_pcm(mpctx->ao_chain->input_format.format);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user