diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-04 11:16:35 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-04 11:16:35 +0200 |
commit | 02a6ee51685eb74f7a878dd49553ecc1f8da9fb2 (patch) | |
tree | 9663d737826ec804a19224d80c91c68645e2c3ec /libavfilter | |
parent | d4dc673455164c5c15092abd163ec808be24f694 (diff) | |
download | ffmpeg-streaming-02a6ee51685eb74f7a878dd49553ecc1f8da9fb2.zip ffmpeg-streaming-02a6ee51685eb74f7a878dd49553ecc1f8da9fb2.tar.gz |
avfilter/vf_frei0r: fix out of array read
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_frei0r.c | 3 |
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(¶ms, "|"))) return AVERROR(ENOMEM); - params++; /* skip ':' */ + if (*params) + params++; /* skip ':' */ ret = set_param(ctx, info, i, param); av_free(param); if (ret < 0) |