swresample/resample: do not allow odd filter_length
authorMuhammad Faiz <mfcc64@gmail.com>
Wed, 8 Mar 2017 15:21:34 +0000 (22:21 +0700)
committerMuhammad Faiz <mfcc64@gmail.com>
Thu, 9 Mar 2017 06:09:14 +0000 (13:09 +0700)
commit53a5cea478616d2caa1c07aa58b6b911bd80c285
tree00ac695c96d411c01361efe29c4f2c344b76300c
parent3016e919d4e1d90da98af19ce2a9d4979506eaf3
swresample/resample: do not allow odd filter_length

except filter_length == 1

odd filter_length gives worse frequency response,
even when compared with shorter filter_length

also makes build_filter simpler

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
libswresample/resample.c
tests/fate/libswresample.mak