From 9a2dbfde2e3167cd6f751af38805a1a743eb2470 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 1 Aug 2019 16:02:18 +0200 Subject: [PATCH] avcodec/msrle: remove unused items --- libavcodec/msrle.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c index 1ab8a41985..61bc02df04 100644 --- a/libavcodec/msrle.c +++ b/libavcodec/msrle.c @@ -42,8 +42,6 @@ typedef struct MsrleContext { AVFrame *frame; GetByteContext gb; - const unsigned char *buf; - int size; uint32_t pal[256]; } MsrleContext; @@ -92,9 +90,6 @@ static int msrle_decode_frame(AVCodecContext *avctx, int istride = FFALIGN(avctx->width*avctx->bits_per_coded_sample, 32) / 8; int ret; - s->buf = buf; - s->size = buf_size; - if (buf_size < 2) //Minimally a end of picture code should be there return AVERROR_INVALIDDATA;