summaryrefslogtreecommitdiff
authorMichael Niedermayer <michaelni@gmx.at>2013-10-04 09:16:35 (GMT)
committer Michael Niedermayer <michaelni@gmx.at>2013-10-04 09:16:35 (GMT)
commit02a6ee51685eb74f7a878dd49553ecc1f8da9fb2 (patch)
tree9663d737826ec804a19224d80c91c68645e2c3ec
parentd4dc673455164c5c15092abd163ec808be24f694 (diff)
downloadffmpeg-02a6ee51685eb74f7a878dd49553ecc1f8da9fb2.zip
ffmpeg-02a6ee51685eb74f7a878dd49553ecc1f8da9fb2.tar.gz
ffmpeg-02a6ee51685eb74f7a878dd49553ecc1f8da9fb2.tar.bz2
avfilter/vf_frei0r: fix out of array read
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat
-rw-r--r--libavfilter/vf_frei0r.c3
1 files changed, 2 insertions, 1 deletions
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(&params, "|")))
return AVERROR(ENOMEM);
- params++; /* skip ':' */
+ if (*params)
+ params++; /* skip ':' */
ret = set_param(ctx, info, i, param);
av_free(param);
if (ret < 0)