]> git.sesse.net Git - ffmpeg/commitdiff
vf_mp: fix 'discards const qualifier from pointer target type'
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 28 Dec 2012 16:00:01 +0000 (17:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 28 Dec 2012 16:00:01 +0000 (17:00 +0100)
args are not supposed to be changed by filters even if the argument is
not marked as const.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_mp.c

index 772be343d091780eefc689dad1fe45d5e7fbd823..6c87b3a8f080236d8a5a494ba454c09c7bb29bf6 100644 (file)
@@ -702,7 +702,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
       else
         args = NULL;
 #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);
         return -1;
     }