Use AV_PIX_FMT_FLAG_ALPHA for detecting transparency where nb_components was used