lavc: support building with the forks ABI for avcodec_find_best_pix_fmt2()