summaryrefslogtreecommitdiff
path: root/libavcodec/targa_y216dec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/targa_y216dec.c')
-rw-r--r--libavcodec/targa_y216dec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/targa_y216dec.c b/libavcodec/targa_y216dec.c
index bac5aeeddf..0e999dbcfa 100644
--- a/libavcodec/targa_y216dec.c
+++ b/libavcodec/targa_y216dec.c
@@ -20,6 +20,7 @@
*/
#include "avcodec.h"
+#include "internal.h"
static av_cold int y216_decode_init(AVCodecContext *avctx)
{
@@ -54,7 +55,7 @@ static int y216_decode_frame(AVCodecContext *avctx, void *data,
pic->reference = 0;
- if (avctx->get_buffer(avctx, pic) < 0) {
+ if (ff_get_buffer(avctx, pic) < 0) {
av_log(avctx, AV_LOG_ERROR, "Could not allocate buffer.\n");
return AVERROR(ENOMEM);
}