avfilter: fix const use of avfilter_next