aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vble.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-30 17:28:50 -0500
committerRonald S. Bultje <rsbultje@gmail.com>2011-11-30 21:06:15 -0800
commit317ea97bff5135666369570c35f1ea6ef06103fb (patch)
tree465e18e43b390ffdf8d892a303b1d865b0dd5914 /libavcodec/vble.c
parente46abbcf77141a33ac21bbe1b71bdf934a658fb9 (diff)
downloadffmpeg-317ea97bff5135666369570c35f1ea6ef06103fb.tar.gz
vble: remove flags copy, its not used in any speed relevant code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r--libavcodec/vble.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c
index 09a9499361..b510b6c313 100644
--- a/libavcodec/vble.c
+++ b/libavcodec/vble.c
@@ -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;