/* Dispatch function for our custom plugin. This handles the dispatch for the Xvid plugin. It passes data on to other functions for actual processing. */
int xvid_ff_2pass(void *ref, int opt, void *p1, void *p2)
/* Dispatch function for our custom plugin. This handles the dispatch for the Xvid plugin. It passes data on to other functions for actual processing. */
int xvid_ff_2pass(void *ref, int opt, void *p1, void *p2)
{
        case XVID_PLG_INFO:
        case XVID_PLG_FRAME:
            return 0;
        case XVID_PLG_BEFORE:
            return xvid_ff_2pass_before(ref, p1);
        case XVID_PLG_CREATE:
            return xvid_ff_2pass_create(p1, p2);
        case XVID_PLG_AFTER:
            return xvid_ff_2pass_after(ref, p1);
        case XVID_PLG_DESTROY:
            return xvid_ff_2pass_destroy(ref, p1);
        default:
            return XVID_ERR_FAIL;
    }
}