mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/filtfmts: fix use of deprecated symbols
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
21ba80214c
commit
f12174c8ce
|
@ -31,7 +31,7 @@ static void print_formats(AVFilterContext *filter_ctx)
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
#define PRINT_FMTS(inout, outin, INOUT) \
|
#define PRINT_FMTS(inout, outin, INOUT) \
|
||||||
for (i = 0; i < filter_ctx->inout##put_count; i++) { \
|
for (i = 0; i < filter_ctx->nb_##inout##puts; i++) { \
|
||||||
if (filter_ctx->inout##puts[i]->type == AVMEDIA_TYPE_VIDEO) { \
|
if (filter_ctx->inout##puts[i]->type == AVMEDIA_TYPE_VIDEO) { \
|
||||||
AVFilterFormats *fmts = \
|
AVFilterFormats *fmts = \
|
||||||
filter_ctx->inout##puts[i]->outin##_formats; \
|
filter_ctx->inout##puts[i]->outin##_formats; \
|
||||||
|
@ -111,12 +111,12 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create a link for each of the input pads */
|
/* create a link for each of the input pads */
|
||||||
for (i = 0; i < filter_ctx->input_count; i++) {
|
for (i = 0; i < filter_ctx->nb_inputs; i++) {
|
||||||
AVFilterLink *link = av_mallocz(sizeof(AVFilterLink));
|
AVFilterLink *link = av_mallocz(sizeof(AVFilterLink));
|
||||||
link->type = filter_ctx->filter->inputs[i].type;
|
link->type = filter_ctx->filter->inputs[i].type;
|
||||||
filter_ctx->inputs[i] = link;
|
filter_ctx->inputs[i] = link;
|
||||||
}
|
}
|
||||||
for (i = 0; i < filter_ctx->output_count; i++) {
|
for (i = 0; i < filter_ctx->nb_outputs; i++) {
|
||||||
AVFilterLink *link = av_mallocz(sizeof(AVFilterLink));
|
AVFilterLink *link = av_mallocz(sizeof(AVFilterLink));
|
||||||
link->type = filter_ctx->filter->outputs[i].type;
|
link->type = filter_ctx->filter->outputs[i].type;
|
||||||
filter_ctx->outputs[i] = link;
|
filter_ctx->outputs[i] = link;
|
||||||
|
|
Loading…
Reference in New Issue