X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Floco.c;h=fc7b44075f43dae29f17e1d2a6e3302c73322f91;hb=76ac719888c1bdea7251238cb4cec9e06ead5653;hp=fcf93151e1e7be66d34d4e5e714273185da7c3a7;hpb=ccd425e7993ef0e76da7bf10c566d33f7acc7c6d;p=ffmpeg diff --git a/libavcodec/loco.c b/libavcodec/loco.c index fcf93151e1e..fc7b44075f4 100644 --- a/libavcodec/loco.c +++ b/libavcodec/loco.c @@ -20,13 +20,14 @@ */ /** - * @file loco.c + * @file libavcodec/loco.c * LOCO codec. */ #include "avcodec.h" #include "bitstream.h" #include "golomb.h" +#include "mathops.h" enum LOCO_MODE {LOCO_UNKN=0, LOCO_CYUY2=-1, LOCO_CRGB=-2, LOCO_CRGBA=-3, LOCO_CYV12=-4, LOCO_YUY2=1, LOCO_UYVY=2, LOCO_RGB=3, LOCO_RGBA=4, LOCO_YV12=5}; @@ -157,8 +158,10 @@ static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int heigh static int 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; LOCOContext * const l = avctx->priv_data; AVFrame * const p= (AVFrame*)&l->pic; int decoded; @@ -282,5 +285,5 @@ AVCodec loco_decoder = { NULL, decode_frame, CODEC_CAP_DR1, - .long_name = "LOCO", + .long_name = NULL_IF_CONFIG_SMALL("LOCO"), };