[FFmpeg-cvslog] avfilter/vf_frei0r: fix out of array read
Michael Niedermayer
git at videolan.org
Fri Oct 4 11:21:33 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 4 11:16:35 2013 +0200| [02a6ee51685eb74f7a878dd49553ecc1f8da9fb2] | committer: Michael Niedermayer
avfilter/vf_frei0r: fix out of array read
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=02a6ee51685eb74f7a878dd49553ecc1f8da9fb2
---
libavfilter/vf_frei0r.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c
index 8300176..67d25fb 100644
--- a/libavfilter/vf_frei0r.c
+++ b/libavfilter/vf_frei0r.c
@@ -151,7 +151,8 @@ static int set_params(AVFilterContext *ctx, const char *params)
if (*params) {
if (!(param = av_get_token(¶ms, "|")))
return AVERROR(ENOMEM);
- params++; /* skip ':' */
+ if (*params)
+ params++; /* skip ':' */
ret = set_param(ctx, info, i, param);
av_free(param);
if (ret < 0)
More information about the ffmpeg-cvslog
mailing list