[FFmpeg-cvslog] vf_frei0r: do not increment string if it reached the end
Vittorio Giovara
git at videolan.org
Mon Dec 8 21:13:44 CET 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Fri Dec 5 02:15:09 2014 +0000| [d0b224054f13bf57244694a3ff092cfef68d66f9] | committer: Vittorio Giovara
vf_frei0r: do not increment string if it reached the end
Bug-Id: 778
CC: libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0b224054f13bf57244694a3ff092cfef68d66f9
---
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 771443d..0122b8d 100644
--- a/libavfilter/vf_frei0r.c
+++ b/libavfilter/vf_frei0r.c
@@ -149,7 +149,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