]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cngdec.c
cmdutils: add a commandline pre-parser.
[ffmpeg] / libavcodec / cngdec.c
index 4fe7839ae7de674204139357334c27c0a3d5694e..6eb0e72058d660fb8a0a9f2bafffb477839cae3a 100644 (file)
@@ -24,6 +24,7 @@
 #include "libavutil/common.h"
 #include "avcodec.h"
 #include "celp_filters.h"
+#include "internal.h"
 #include "libavutil/lfg.h"
 
 typedef struct CNGContext {
@@ -102,7 +103,7 @@ static void cng_decode_flush(AVCodecContext *avctx)
 }
 
 static int cng_decode_frame(AVCodecContext *avctx, void *data,
-                              int *got_frame_ptr, AVPacket *avpkt)
+                            int *got_frame_ptr, AVPacket *avpkt)
 {
 
     CNGContext *p = avctx->priv_data;
@@ -144,7 +145,7 @@ static int cng_decode_frame(AVCodecContext *avctx, void *data,
                                  p->excitation, avctx->frame_size, p->order);
 
     p->avframe.nb_samples = avctx->frame_size;
-    if ((ret = avctx->get_buffer(avctx, &p->avframe)) < 0) {
+    if ((ret = ff_get_buffer(avctx, &p->avframe)) < 0) {
         av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
         return ret;
     }