avcodec/vcr1: simplify code drop buf variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-09-03 15:47:21 +02:00
parent 84b6451d29
commit f4e9c768d1
1 changed files with 1 additions and 2 deletions

View File

@ -49,10 +49,9 @@ static av_cold int vcr1_decode_init(AVCodecContext *avctx)
static int vcr1_decode_frame(AVCodecContext *avctx, void *data, static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt) int *got_frame, AVPacket *avpkt)
{ {
const uint8_t *buf = avpkt->data;
VCR1Context *const a = avctx->priv_data; VCR1Context *const a = avctx->priv_data;
AVFrame *const p = data; AVFrame *const p = data;
const uint8_t *bytestream = buf; const uint8_t *bytestream = avpkt->data;
const uint8_t *bytestream_end = bytestream + avpkt->size; const uint8_t *bytestream_end = bytestream + avpkt->size;
int i, x, y, ret; int i, x, y, ret;