]> git.tue.mpg.de Git - paraslash.git/commit
audiod: Fix off-by-one bug in init_default_filters().
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 13 Jun 2017 20:09:01 +0000 (22:09 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 14 Jun 2017 17:53:58 +0000 (19:53 +0200)
commit73eea97d6501c90f37d44e9f2a31bb6defe2e338
tree77a5c3b2f447f7077d6835c61e30d003176f529a
parent7d9e345416f87866bea1e0179641d31091b97ffb
audiod: Fix off-by-one bug in init_default_filters().

Filter numbers are one-based because zero is the number of the
(non-existing) supercommand of the filter_cmd suite. The loop in
init_default_filters() gets this wrong.

This bites only if no filter is given for at least one audio format.
Fortunately, the bug was easy to find because it triggers an assertion
in filter_get() which checks that the given number is at least one.
audiod.c