Commit 317ea97b authored by Michael Niedermayer's avatar Michael Niedermayer Committed by Ronald S. Bultje

vble: remove flags copy, its not used in any speed relevant code.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
parent e46abbcf
......@@ -33,7 +33,6 @@ typedef struct {
AVCodecContext *avctx;
int size;
int flags;
uint8_t *val; /* First holds the lengths of vlc symbols and then their values */
} VBLEContext;
......@@ -161,7 +160,7 @@ static int vble_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
vble_restore_plane(ctx, 0, offset, avctx->width, avctx->height);
/* Chroma */
if (!(ctx->flags & CODEC_FLAG_GRAY)) {
if (!(ctx->avctx->flags & CODEC_FLAG_GRAY)) {
offset += avctx->width * avctx->height;
vble_restore_plane(ctx, 1, offset, width_uv, height_uv);
......@@ -195,7 +194,6 @@ static av_cold int vble_decode_init(AVCodecContext *avctx)
/* Stash for later use */
ctx->avctx = avctx;
ctx->flags = avctx->flags;
avctx->pix_fmt = PIX_FMT_YUV420P;
avctx->bits_per_raw_sample = 8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment