[FFmpeg-devel] [PATCH 2/3] lavfi/buffersrc: disable deprecated warnings.
Stefano Sabatini
stefasab at gmail.com
Sun Mar 17 01:18:03 CET 2013
On date Saturday 2013-03-16 18:01:35 +0100, Nicolas George encoded:
>
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
> libavfilter/buffersrc.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
> index f72e908..b0c2793 100644
> --- a/libavfilter/buffersrc.c
> +++ b/libavfilter/buffersrc.c
> @@ -169,13 +169,17 @@ static int av_buffersrc_add_frame_internal(AVFilterContext *ctx,
> static void compat_free_buffer(void *opaque, uint8_t *data)
> {
> AVFilterBufferRef *buf = opaque;
> + AV_NOWARN_DEPRECATED(
> avfilter_unref_buffer(buf);
> + )
> }
>
> static void compat_unref_buffer(void *opaque, uint8_t *data)
> {
> AVBufferRef *buf = opaque;
> + AV_NOWARN_DEPRECATED(
> av_buffer_unref(&buf);
> + )
> }
>
> int av_buffersrc_add_ref(AVFilterContext *ctx, AVFilterBufferRef *buf,
> @@ -203,8 +207,10 @@ int av_buffersrc_add_ref(AVFilterContext *ctx, AVFilterBufferRef *buf,
> goto fail;
> }
>
> + AV_NOWARN_DEPRECATED(
> if ((ret = avfilter_copy_buf_props(frame, buf)) < 0)
> goto fail;
> + )
Sure if you think it's useful, thanks.
--
FFmpeg = Frenzy Fancy Merciless Prodigious Eretic Gem
More information about the ffmpeg-devel
mailing list