avfilter/vf_atadenoise: fix mid calculation