From 0b3b95813576aeafc64813c93c6387b24e210f9a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 17 Jun 2012 12:36:52 +0200 Subject: lavfi: remove disabled FF_API_VSRC_BUFFER_ADD_FRAME cruft --- libavfilter/Makefile | 1 - libavfilter/buffersrc.c | 20 -------------------- libavfilter/version.h | 3 --- libavfilter/vsrc_buffer.h | 37 ------------------------------------- 4 files changed, 61 deletions(-) delete mode 100644 libavfilter/vsrc_buffer.h (limited to 'libavfilter') diff --git a/libavfilter/Makefile b/libavfilter/Makefile index c77d450..b789609 100644 --- a/libavfilter/Makefile +++ b/libavfilter/Makefile @@ -10,7 +10,6 @@ HEADERS = avfilter.h \ buffersink.h \ buffersrc.h \ version.h \ - vsrc_buffer.h \ OBJS = allfilters.o \ audio.o \ diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index 30e34b7..e1311c0 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -29,7 +29,6 @@ #include "formats.h" #include "internal.h" #include "video.h" -#include "vsrc_buffer.h" #include "libavutil/audioconvert.h" #include "libavutil/fifo.h" @@ -70,25 +69,6 @@ typedef struct { return AVERROR(EINVAL);\ } -#if FF_API_VSRC_BUFFER_ADD_FRAME -int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, - int64_t pts, AVRational pixel_aspect) -{ - int64_t orig_pts = frame->pts; - AVRational orig_sar = frame->sample_aspect_ratio; - int ret; - - frame->pts = pts; - frame->sample_aspect_ratio = pixel_aspect; - if ((ret = av_buffersrc_write_frame(buffer_filter, frame)) < 0) - return ret; - frame->pts = orig_pts; - frame->sample_aspect_ratio = orig_sar; - - return 0; -} -#endif - int av_buffersrc_write_frame(AVFilterContext *buffer_filter, AVFrame *frame) { BufferSourceContext *c = buffer_filter->priv; diff --git a/libavfilter/version.h b/libavfilter/version.h index 472643b..d61d111 100644 --- a/libavfilter/version.h +++ b/libavfilter/version.h @@ -44,9 +44,6 @@ * Those FF_API_* defines are not part of public API. * They may change, break or disappear at any time. */ -#ifndef FF_API_VSRC_BUFFER_ADD_FRAME -#define FF_API_VSRC_BUFFER_ADD_FRAME (LIBAVFILTER_VERSION_MAJOR < 3) -#endif #ifndef FF_API_DEFAULT_CONFIG_OUTPUT_LINK #define FF_API_DEFAULT_CONFIG_OUTPUT_LINK (LIBAVFILTER_VERSION_MAJOR < 3) #endif diff --git a/libavfilter/vsrc_buffer.h b/libavfilter/vsrc_buffer.h deleted file mode 100644 index cbcc630..0000000 --- a/libavfilter/vsrc_buffer.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2008 Vitor Sessak - * - * This file is part of Libav. - * - * Libav is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * Libav is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with Libav; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#ifndef AVFILTER_VSRC_BUFFER_H -#define AVFILTER_VSRC_BUFFER_H - -/** - * @file - * memory buffer source API for video - */ - -#include "libavcodec/avcodec.h" /* AVFrame */ -#include "avfilter.h" - -#if FF_API_VSRC_BUFFER_ADD_FRAME -int av_vsrc_buffer_add_frame(AVFilterContext *buffer_filter, AVFrame *frame, - int64_t pts, AVRational pixel_aspect); -#endif - -#endif /* AVFILTER_VSRC_BUFFER_H */ -- cgit v1.1