Remove dependency on avcodec_get_chroma_sub_sample() and libavcodec,