diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-16 09:47:46 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-16 15:15:16 +0000 |
commit | c9e183b490add7e3712974fec85db6c86c13b671 (patch) | |
tree | 6e37906365fa636b76294e9b34f85084dab7bc15 /libavfilter/sink_buffer.c | |
parent | 0354412aa3722a29e9842369fb718f1d22e7d693 (diff) | |
download | ffmpeg-c9e183b490add7e3712974fec85db6c86c13b671.tar.gz |
lavfi: update some deprecated functions
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/sink_buffer.c')
-rw-r--r-- | libavfilter/sink_buffer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/sink_buffer.c b/libavfilter/sink_buffer.c index 35c0b16b41..27f21b017d 100644 --- a/libavfilter/sink_buffer.c +++ b/libavfilter/sink_buffer.c @@ -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); |