#include "audio.h"
#include "video.h"
-typedef struct {
+typedef struct InterleaveContext {
const AVClass *class;
int nb_inputs;
struct FFBufQueue *queues;
{
InterleaveContext *s = ctx->priv;
const AVFilterPad *outpad = &ctx->filter->outputs[0];
- int i;
+ int i, ret;
s->queues = av_calloc(s->nb_inputs, sizeof(s->queues[0]));
if (!s->queues)
default:
av_assert0(0);
}
- ff_insert_inpad(ctx, i, &inpad);
+ if ((ret = ff_insert_inpad(ctx, i, &inpad)) < 0) {
+ av_freep(&inpad.name);
+ return ret;
+ }
}
return 0;