summaryrefslogtreecommitdiff
path: root/libavcodec/libschroedingerdec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-11-10 13:22:56 +0100
committerAnton Khirnov <anton@khirnov.net>2012-12-04 21:41:59 +0100
commit594d4d5df3c70404168701dd5c90b7e6e5587793 (patch)
treebfed1b2d0f2a7cd1a3c1b147c5e33995642c9183 /libavcodec/libschroedingerdec.c
parentcb45553f577f8e0ebfe05d3287e1b6fa5859b967 (diff)
lavc: add a wrapper for AVCodecContext.get_buffer().
It will be useful in the upcoming transition to refcounted AVFrames.
Diffstat (limited to 'libavcodec/libschroedingerdec.c')
-rw-r--r--libavcodec/libschroedingerdec.c3
1 files changed, 2 insertions, 1 deletions
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);
}