summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_dlopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/filter/vf_dlopen.c')
-rw-r--r--video/filter/vf_dlopen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/filter/vf_dlopen.c b/video/filter/vf_dlopen.c
index 1646d3fbcf..9f9cd20318 100644
--- a/video/filter/vf_dlopen.c
+++ b/video/filter/vf_dlopen.c
@@ -102,7 +102,7 @@ static int config(struct vf_instance *vf,
vf->priv->filter.in_height = height;
vf->priv->filter.in_d_width = d_width;
vf->priv->filter.in_d_height = d_height;
- vf->priv->filter.in_fmt = mp_imgfmt_to_name(fmt);
+ vf->priv->filter.in_fmt = talloc_strdup(vf, mp_imgfmt_to_name(fmt));
vf->priv->filter.out_width = width;
vf->priv->filter.out_height = height;
vf->priv->filter.out_d_width = d_width;
@@ -142,7 +142,8 @@ static int config(struct vf_instance *vf,
}
} else
vf->priv->outfmt = fmt;
- vf->priv->filter.out_fmt = mp_imgfmt_to_name(vf->priv->outfmt);
+ vf->priv->filter.out_fmt =
+ talloc_strdup(vf, mp_imgfmt_to_name(vf->priv->outfmt));
}
if (!vf->priv->outfmt) {