From 594d4d5df3c70404168701dd5c90b7e6e5587793 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 10 Nov 2012 13:22:56 +0100 Subject: lavc: add a wrapper for AVCodecContext.get_buffer(). It will be useful in the upcoming transition to refcounted AVFrames. --- libavcodec/internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavcodec/internal.h') diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 0f624e201f..9dde654528 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -141,4 +141,11 @@ static av_always_inline int64_t ff_samples_to_time_base(AVCodecContext *avctx, avctx->time_base); } +/** + * Get a buffer for a frame. This is a wrapper around + * AVCodecContext.get_buffer() and should be used instead calling get_buffer() + * directly. + */ +int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame); + #endif /* AVCODEC_INTERNAL_H */ -- cgit v1.2.3