1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-16 20:27:23 +00:00

vf_dlopen: fix the order of the arguments to mp_image_alloc

This commit is contained in:
Marcoen Hirschberg 2014-06-19 22:54:10 +02:00 committed by wm4
parent 0a55ee400a
commit c4f518f132

View File

@ -158,8 +158,8 @@ static int config(struct vf_instance *vf,
for (int i = 0; i < vf->priv->out_cnt; ++i) {
talloc_free(vf->priv->outpic[i]);
vf->priv->outpic[i] =
mp_image_alloc(vf->priv->out_width, vf->priv->out_height,
vf->priv->outfmt);
mp_image_alloc(vf->priv->outfmt,
vf->priv->out_width, vf->priv->out_height);
if (!vf->priv->outpic[i])
return 0; // OOM
talloc_steal(vf, vf->priv->outpic[i]);