]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dxa.c
Cosmetics: Pretty print the AAC encoder.
[ffmpeg] / libavcodec / dxa.c
index 2df987ab076d6d3d6bbb3a300ed4f5585bd3fce8..69aed3c89e2ff9c40d7edb3fabae3908a53f0821 100644 (file)
  */
 
 /**
- * @file dxa.c
+ * @file libavcodec/dxa.c
  * DXA Video decoder
  */
 
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "libavutil/intreadwrite.h"
 #include "avcodec.h"
 
 #include <zlib.h>
@@ -187,8 +188,10 @@ static int decode_13(AVCodecContext *avctx, DxaDecContext *c, uint8_t* dst, uint
     return 0;
 }
 
-static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size)
+static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
 {
+    const uint8_t *buf = avpkt->data;
+    int buf_size = avpkt->size;
     DxaDecContext * const c = avctx->priv_data;
     uint8_t *outptr, *srcptr, *tmpptr;
     unsigned long dsize;
@@ -327,6 +330,7 @@ AVCodec dxa_decoder = {
     NULL,
     decode_end,
     decode_frame,
-    .long_name = "Feeble Files/ScummVM DXA",
+    CODEC_CAP_DR1,
+    .long_name = NULL_IF_CONFIG_SMALL("Feeble Files/ScummVM DXA"),
 };