summaryrefslogtreecommitdiffstats
path: root/audio/chmap.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-10 18:39:50 +0200
committerwm4 <wm4@nowhere>2016-07-10 19:51:09 +0200
commit2eac58eaa97ec667a2512cd27c35f006a22ec074 (patch)
treefafe5b96783256f035c72aa14d6fe21a29cc0573 /audio/chmap.h
parent065bb635d98f7655ce0d1f2afe7bbbcf737f3fea (diff)
downloadmpv-2eac58eaa97ec667a2512cd27c35f006a22ec074.tar.bz2
mpv-2eac58eaa97ec667a2512cd27c35f006a22ec074.tar.xz
audio: cleanup audio filter format negotiation
The algorithm and functionality is the same, but the code becomes much simpler and easier to follow. The assumption that there is only 1 conversion filter (lavrresample) helps with the simplification, but the main change is to use the same code for format/channels/rate. Get rid of the different AF_CONTROL_SET_* controls, and change the af->data parameters directly. (af->data is badly named, but essentially is a placeholder for the output format.) Also, instead of trying to use the af_reinit() loop to init inserted conversion filters or filters with changed output formats, do it inline, and move the common code to a filter_reinit() function. This gets rid of the awful retry variable. In general, this should not change any runtime behavior.
Diffstat (limited to 'audio/chmap.h')
0 files changed, 0 insertions, 0 deletions