avcodec/resample2: replace #define by typedef