add version check to avoid av_pix_fmt_count_planes redefinition. issue