Commit 458afd2a authored by Michael Niedermayer's avatar Michael Niedermayer

vf_mp: fix 'discards const qualifier from pointer target type'

args are not supposed to be changed by filters even if the argument is
not marked as const.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 33f15ab3
...@@ -702,7 +702,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args) ...@@ -702,7 +702,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
else else
args = NULL; args = NULL;
#endif #endif
if(m->vf.info->vf_open(&m->vf, args)<=0){ if(m->vf.info->vf_open(&m->vf, (char*)args)<=0){
av_log(ctx, AV_LOG_ERROR, "vf_open() of %s with arg=%s failed\n", name, args); av_log(ctx, AV_LOG_ERROR, "vf_open() of %s with arg=%s failed\n", name, args);
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment