aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vorbisdec.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/vorbisdec.c
parentcb45553f577f8e0ebfe05d3287e1b6fa5859b967 (diff)
downloadffmpeg-594d4d5df3c70404168701dd5c90b7e6e5587793.tar.gz
lavc: add a wrapper for AVCodecContext.get_buffer().
It will be useful in the upcoming transition to refcounted AVFrames.
Diffstat (limited to 'libavcodec/vorbisdec.c')
-rw-r--r--libavcodec/vorbisdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c
index 496d4c3f33..b30e614c2f 100644
--- a/libavcodec/vorbisdec.c
+++ b/libavcodec/vorbisdec.c
@@ -32,6 +32,7 @@
#include "dsputil.h"
#include "fft.h"
#include "fmtconvert.h"
+#include "internal.h"
#include "vorbis.h"
#include "xiph.h"
@@ -1650,7 +1651,7 @@ static int vorbis_decode_frame(AVCodecContext *avccontext, void *data,
/* get output buffer */
vc->frame.nb_samples = vc->blocksize[1] / 2;
- if ((ret = avccontext->get_buffer(avccontext, &vc->frame)) < 0) {
+ if ((ret = ff_get_buffer(avccontext, &vc->frame)) < 0) {
av_log(avccontext, AV_LOG_ERROR, "get_buffer() failed\n");
return ret;
}