avcodec_find_best_pix_fmt() needs a 64bit mask as there are more than 32 pix_fmts.