avfilter/aresample: Check for memory alloc failure for out sample rates

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
avfilter: Properly check for failed format query

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Fix compilation of jpeg2000dsp when disabling the encoder.

Signed-off-by: James Almer <jamrial@gmail.com>
avutil/avstring: Factor av_match_list() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>