mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-05 21:55:37 +01:00
lavfi: update some deprecated functions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -152,7 +152,7 @@ int av_buffersink_poll_frame(AVFilterContext *ctx)
|
||||
BufferSinkContext *buf = ctx->priv;
|
||||
AVFilterLink *inlink = ctx->inputs[0];
|
||||
|
||||
return av_fifo_size(buf->fifo)/sizeof(AVFilterBufferRef *) + avfilter_poll_frame(inlink);
|
||||
return av_fifo_size(buf->fifo)/sizeof(AVFilterBufferRef *) + ff_poll_frame(inlink);
|
||||
}
|
||||
|
||||
#if FF_API_OLD_VSINK_API
|
||||
@@ -201,9 +201,9 @@ static int vsink_query_formats(AVFilterContext *ctx)
|
||||
BufferSinkContext *buf = ctx->priv;
|
||||
|
||||
if (buf->pixel_fmts)
|
||||
avfilter_set_common_pixel_formats(ctx, avfilter_make_format_list(buf->pixel_fmts));
|
||||
ff_set_common_formats(ctx, ff_make_format_list(buf->pixel_fmts));
|
||||
else
|
||||
avfilter_default_query_formats(ctx);
|
||||
ff_default_query_formats(ctx);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -272,9 +272,9 @@ static int asink_query_formats(AVFilterContext *ctx)
|
||||
AVFilterFormats *formats = NULL;
|
||||
AVFilterChannelLayouts *layouts = NULL;
|
||||
|
||||
if (!(formats = avfilter_make_format_list(buf->sample_fmts)))
|
||||
if (!(formats = ff_make_format_list(buf->sample_fmts)))
|
||||
return AVERROR(ENOMEM);
|
||||
avfilter_set_common_sample_formats(ctx, formats);
|
||||
ff_set_common_formats(ctx, formats);
|
||||
|
||||
if (!(layouts = avfilter_make_format64_list(buf->channel_layouts)))
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
Reference in New Issue
Block a user