summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-07-11 12:23:25 +0200
committerwm4 <wm4@nowhere>2016-07-11 12:23:32 +0200
commite246c3f060513a9bcda6097f6ca6ddfba5bf3579 (patch)
tree0371677e0ff6817a867fa7af6cf9ba4416f325de /video
parent61afe3820a9e967a471e6ef90162158f5cf87f39 (diff)
downloadmpv-e246c3f060513a9bcda6097f6ca6ddfba5bf3579.tar.bz2
mpv-e246c3f060513a9bcda6097f6ca6ddfba5bf3579.tar.xz
audio: fix code for adjusting conversion filters
This code was supposed to adjust existing conversion filters (to make them output a different format). But the code was just broken, apparently a refactoring accident. It accessed af instead of af->prev. The bug tended to add new conversion filters, even if an existing one could have been used. (Can be tested by inserting a dummy lavrresample filter followed by a format filter which forces conversion.) In addition, it's probably better to return the actual error code if reinitializing the filter fails. It would then respect an AF_FALSE return value, which means format negotiation failed, instead of a generic error.
Diffstat (limited to 'video')
0 files changed, 0 insertions, 0 deletions