Do not hardcode the list of pixel formats and use PIX_FMT_NB instead.