From f4e9c768d1021feec717b0ed03bb87ef00d585b8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 3 Sep 2013 15:47:21 +0200 Subject: [PATCH] avcodec/vcr1: simplify code drop buf variable Signed-off-by: Michael Niedermayer --- libavcodec/vcr1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavcodec/vcr1.c b/libavcodec/vcr1.c index f97add132d..aa73da8278 100644 --- a/libavcodec/vcr1.c +++ b/libavcodec/vcr1.c @@ -49,10 +49,9 @@ static av_cold int vcr1_decode_init(AVCodecContext *avctx) static int vcr1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { - const uint8_t *buf = avpkt->data; VCR1Context *const a = avctx->priv_data; AVFrame *const p = data; - const uint8_t *bytestream = buf; + const uint8_t *bytestream = avpkt->data; const uint8_t *bytestream_end = bytestream + avpkt->size; int i, x, y, ret;