X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fadxdec.c;h=94ee793cfa82d01a10229eba18691039923023bf;hb=99c5f5ccbefba0caa39020e58bcb458e107f8e89;hp=5512d7fc562d552a15f311fc62166b10793fe2d2;hpb=defa0cd6f53c5696a999198009b8e0fc662ff2ae;p=ffmpeg diff --git a/libavcodec/adxdec.c b/libavcodec/adxdec.c index 5512d7fc562..94ee793cfa8 100644 --- a/libavcodec/adxdec.c +++ b/libavcodec/adxdec.c @@ -18,11 +18,13 @@ * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + +#include "libavutil/intreadwrite.h" #include "avcodec.h" #include "adx.h" /** - * @file adx.c + * @file libavcodec/adxdec.c * SEGA CRI adx codecs. * * Reference documents: @@ -102,8 +104,10 @@ static int adx_decode_header(AVCodecContext *avctx,const unsigned char *buf,size static int adx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - const uint8_t *buf0, int buf_size) + AVPacket *avpkt) { + const uint8_t *buf0 = avpkt->data; + int buf_size = avpkt->size; ADXContext *c = avctx->priv_data; short *samples = data; const uint8_t *buf = buf0; @@ -171,6 +175,6 @@ AVCodec adpcm_adx_decoder = { NULL, NULL, adx_decode_frame, - .long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX"), + .long_name = NULL_IF_CONFIG_SMALL("SEGA CRI ADX ADPCM"), };