[FFmpeg-devel] [PATCH] fifo: add av_fifo_enlarge()
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon May 14 20:33:26 CEST 2012
On 14 May 2012, at 19:58, Michael Niedermayer <michaelni at gmx.at> wrote:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> libavutil/avutil.h | 2 +-
> libavutil/fifo.c | 9 +++++++++
> libavutil/fifo.h | 11 +++++++++++
> 3 files changed, 21 insertions(+), 1 deletion(-)
>
> diff --git a/libavutil/avutil.h b/libavutil/avutil.h
> index 2491264..d80393b 100644
> --- a/libavutil/avutil.h
> +++ b/libavutil/avutil.h
> @@ -153,7 +153,7 @@
> */
>
> #define LIBAVUTIL_VERSION_MAJOR 51
> -#define LIBAVUTIL_VERSION_MINOR 51
> +#define LIBAVUTIL_VERSION_MINOR 52
> #define LIBAVUTIL_VERSION_MICRO 100
>
> #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
> diff --git a/libavutil/fifo.c b/libavutil/fifo.c
> index d1d9ba8..75bdfb9 100644
> --- a/libavutil/fifo.c
> +++ b/libavutil/fifo.c
> @@ -79,6 +79,15 @@ int av_fifo_realloc2(AVFifoBuffer *f, unsigned int new_size)
> return 0;
> }
>
> +int av_fifo_enlarge(AVFifoBuffer *f, unsigned int new_size)
May I suggest calling it "grow"? That is more consistent with the avpacket function for example.
More information about the ffmpeg-devel
mailing list