1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-12 02:10:06 +01:00
parent 2fea60c600
commit ef97d59fb3

View File

@ -33,7 +33,6 @@ typedef struct {
AVCodecContext *avctx; AVCodecContext *avctx;
int size; int size;
int flags;
uint8_t *val; ///< This array first holds the lengths of vlc symbols and then their value. uint8_t *val; ///< This array first holds the lengths of vlc symbols and then their value.
} VBLEContext; } 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); vble_restore_plane(ctx, 0, offset, avctx->width, avctx->height);
/* Chroma */ /* Chroma */
if (!(ctx->flags & CODEC_FLAG_GRAY)) { if (!(ctx->avctx->flags & CODEC_FLAG_GRAY)) {
offset += avctx->width * avctx->height; offset += avctx->width * avctx->height;
vble_restore_plane(ctx, 1, offset, width_uv, height_uv); 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 */ /* Stash for later use */
ctx->avctx = avctx; ctx->avctx = avctx;
ctx->flags = avctx->flags;
avctx->pix_fmt = PIX_FMT_YUV420P; avctx->pix_fmt = PIX_FMT_YUV420P;
avctx->bits_per_raw_sample = 8; avctx->bits_per_raw_sample = 8;