diff options
author | Michael Niedermayer | 2011-11-12 02:10:06 +0100 |
---|---|---|
committer | Michael Niedermayer | 2011-11-12 03:12:13 +0100 |
commit | ef97d59fb315c48ac1c473597396251d5488fa13 (patch) | |
tree | 8126b9a35c71d2e82ac03ed6fb91d7d847488213 /libavcodec/vble.c | |
parent | 2fea60c60084c4e70d7cef128ea3bca5690ce465 (diff) |
vble: remove flags copy, its not used in any speed relevant code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vble.c')
-rw-r--r-- | libavcodec/vble.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/vble.c b/libavcodec/vble.c index d0aa8b3251..b27ec32a38 100644 --- a/libavcodec/vble.c +++ b/libavcodec/vble.c @@ -33,7 +33,6 @@ typedef struct { AVCodecContext *avctx; int size; - int flags; uint8_t *val; ///< This array first holds the lengths of vlc symbols and then their value. } VBLEContext; @@ -164,7 +163,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); @@ -198,7 +197,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; |