Use PIX_FMT_NONE instead of -1 in AVCodec.pix_fmts.