avfilter/vf_sr.c: refine code to use AVPixFmtDescriptor.log2_chroma_h/w