1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi/amerge: avoid a forward declaration.

This commit is contained in:
Clément Bœsch 2012-09-11 18:36:09 +02:00
parent 0ea65bbeee
commit bbae8cdf4d

View File

@ -309,14 +309,14 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
return AVERROR(ENOMEM);
for (i = 0; i < am->nb_inputs; i++) {
char *name = av_asprintf("in%d", i);
if (!name)
return AVERROR(ENOMEM);
AVFilterPad pad = {
.name = name,
.type = AVMEDIA_TYPE_AUDIO,
.filter_samples = filter_samples,
.min_perms = AV_PERM_READ | AV_PERM_PRESERVE,
};
if (!name)
return AVERROR(ENOMEM);
ff_insert_inpad(ctx, i, &pad);
}
return 0;