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/libschroedingerdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/libschroedingerdec.c') diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c index 3cd9f9ace2..ae11cc5e2f 100644 --- a/libavcodec/libschroedingerdec.c +++ b/libavcodec/libschroedingerdec.c @@ -34,6 +34,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/mem.h" #include "avcodec.h" +#include "internal.h" #include "libschroedinger.h" #undef NDEBUG @@ -313,7 +314,7 @@ static int libschroedinger_decode_frame(AVCodecContext *avccontext, if (framewithpts && framewithpts->frame) { if (p_schro_params->dec_frame.data[0]) avccontext->release_buffer(avccontext, &p_schro_params->dec_frame); - if (avccontext->get_buffer(avccontext, &p_schro_params->dec_frame) < 0) { + if (ff_get_buffer(avccontext, &p_schro_params->dec_frame) < 0) { av_log(avccontext, AV_LOG_ERROR, "Unable to allocate buffer\n"); return AVERROR(ENOMEM); } -- cgit v1.2.3