X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Flcldec.c;h=5560b9a6466384e85941e4c4bfadfbe7ff0521c6;hb=beca9a286c46a67b39fde5fab62a60d0766fc5ad;hp=80cd1d7dda0965c2a426461ea5e951635bb220e2;hpb=7993df65275a9a9bf0a04c37d1aa31901d3ebb0c;p=ffmpeg diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c index 80cd1d7dda0..5560b9a6466 100644 --- a/libavcodec/lcldec.c +++ b/libavcodec/lcldec.c @@ -136,7 +136,7 @@ static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned cha } else { ofs = *(srcptr++); cnt = *(srcptr++); - ofs += cnt * 256;; + ofs += cnt * 256; cnt = ((cnt >> 3) & 0x1f) + 1; ofs &= 0x7ff; srclen -= 2; @@ -302,7 +302,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const } } encoded = c->decomp_buf; - len = c->decomp_size;; + len = c->decomp_size; #else av_log(avctx, AV_LOG_ERROR, "BUG! Zlib support not compiled in frame decoder.\n"); return -1; @@ -514,7 +514,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const * Init lcl decoder * */ -static int decode_init(AVCodecContext *avctx) +static av_cold int decode_init(AVCodecContext *avctx) { LclDecContext * const c = avctx->priv_data; unsigned int basesize = avctx->width * avctx->height; @@ -673,7 +673,7 @@ static int decode_init(AVCodecContext *avctx) * Uninit lcl decoder * */ -static int decode_end(AVCodecContext *avctx) +static av_cold int decode_end(AVCodecContext *avctx) { LclDecContext * const c = avctx->priv_data; @@ -697,6 +697,7 @@ AVCodec mszh_decoder = { decode_end, decode_frame, CODEC_CAP_DR1, + .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) MSZH"), }; #endif @@ -711,5 +712,6 @@ AVCodec zlib_decoder = { decode_end, decode_frame, CODEC_CAP_DR1, + .long_name = NULL_IF_CONFIG_SMALL("LCL (LossLess Codec Library) ZLIB"), }; #endif