OSDN Git Service

Merge tag 'n2.1.8' of git://source.ffmpeg.org/ffmpeg into kitkat-x86
[android-x86/external-ffmpeg.git] / libavfilter / split.c
index 21e1a60..a14cf05 100644 (file)
@@ -52,6 +52,8 @@ static av_cold int split_init(AVFilterContext *ctx)
         snprintf(name, sizeof(name), "output%d", i);
         pad.type = ctx->filter->inputs[0].type;
         pad.name = av_strdup(name);
+        if (!pad.name)
+            return AVERROR(ENOMEM);
 
         ff_insert_outpad(ctx, i, &pad);
     }