Replace some occurrences of -1 with PIX_FMT_NONE.