]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/tta.c
cosmetics: Remove unnecessary {} around if/for blocks;
[ffmpeg] / libavcodec / tta.c
index 5536aa4cd9bec8b99d2359199bbab48d55f0ed63..b26724b5286116762a30a2747365fd3b9019149c 100644 (file)
@@ -31,7 +31,7 @@
 //#define DEBUG
 #include <limits.h>
 #include "avcodec.h"
-#include "bitstream.h"
+#include "get_bits.h"
 
 #define FORMAT_INT 1
 #define FORMAT_FLOAT 3
@@ -287,8 +287,10 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
 
 static int tta_decode_frame(AVCodecContext *avctx,
         void *data, int *data_size,
-        const uint8_t *buf, int buf_size)
+        AVPacket *avpkt)
 {
+    const uint8_t *buf = avpkt->data;
+    int buf_size = avpkt->size;
     TTAContext *s = avctx->priv_data;
     int i;