From c4ed21367559ec56a5e2d5197f930a871a86a510 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 16 Feb 2016 18:14:55 +0100 Subject: avfilter/f_streamselect: check if map is available Signed-off-by: Paul B Mahol --- libavfilter/f_streamselect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/f_streamselect.c') diff --git a/libavfilter/f_streamselect.c b/libavfilter/f_streamselect.c index db46c997ed..03cedbaa8c 100644 --- a/libavfilter/f_streamselect.c +++ b/libavfilter/f_streamselect.c @@ -267,7 +267,7 @@ static av_cold int init(AVFilterContext *ctx) if (!strcmp(ctx->filter->name, "astreamselect")) s->is_audio = 1; - for (;;) { + for (; map;) { char *p; strtol(map, &p, 0); -- cgit v1.2.3