[FFmpeg-cvslog] vf_mp: fix 'discards const qualifier from pointer target type'

Michael Niedermayer git at videolan.org
Fri Dec 28 17:10:43 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Dec 28 17:00:01 2012 +0100| [458afd2a0e8af0c125c94b343fbd691f85b34207] | committer: 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: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=458afd2a0e8af0c125c94b343fbd691f85b34207
---

 libavfilter/vf_mp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c
index 772be34..6c87b3a 100644
--- a/libavfilter/vf_mp.c
+++ b/libavfilter/vf_mp.c
@@ -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;
     }



More information about the ffmpeg-cvslog mailing list