avoid deprecation warnings for ImgReSampleContext from avcodec.h