avfilter/f_streamselect: check if map is available

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-02-16 18:14:55 +01:00
parent ea1f47757b
commit c4ed213675

View File

@ -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);