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:
wm4
2016-01-21 22:10:15 +01:00
parent 27ecc417fe
commit fef8b7984b
8 changed files with 289 additions and 213 deletions

View File

@@ -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;
}