]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/apedec.c
Replace pow(x, 0.75) with sqrtf(x * sqrtf(x)) for a 33% speedup.
[ffmpeg] / libavcodec / apedec.c
index c3497d7cca78624955c69d7b4cf9468b0dc412f2..9b8d707135a92c65c946d213b6779f1650b22753 100644 (file)
 #define ALT_BITSTREAM_READER_LE
 #include "avcodec.h"
 #include "dsputil.h"
-#include "bitstream.h"
+#include "get_bits.h"
 #include "bytestream.h"
 
 /**
- * @file apedec.c
+ * @file libavcodec/apedec.c
  * Monkey's Audio lossless audio decoder
  */
 
@@ -806,8 +806,10 @@ static void ape_unpack_stereo(APEContext * ctx, int count)
 
 static int ape_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;
     APEContext *s = avctx->priv_data;
     int16_t *samples = data;
     int nblocks;