[FFmpeg-cvslog] lavfi/mp: fix invalid read with filters with no argument.
Clément Bœsch
git at videolan.org
Tue Dec 4 03:48:57 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Dec 4 03:45:52 2012 +0100| [359cd12a43242e3d2682c27a1a0f7dc6b2cfc6fb] | committer: Clément Bœsch
lavfi/mp: fix invalid read with filters with no argument.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=359cd12a43242e3d2682c27a1a0f7dc6b2cfc6fb
---
libavfilter/vf_mp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c
index c70ab28..5217e03 100644
--- a/libavfilter/vf_mp.c
+++ b/libavfilter/vf_mp.c
@@ -683,7 +683,9 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
av_log(ctx, AV_LOG_ERROR, "Invalid parameter.\n");
return AVERROR(EINVAL);
}
- args+= strlen(name)+1;
+ args += strlen(name);
+ if (args[0] == '=')
+ args++;
for(i=0; ;i++){
if(!filters[i] || !strcmp(name, filters[i]->name))
More information about the ffmpeg-cvslog
mailing list