diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-11-26 14:34:52 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-11-29 17:36:43 +0100 |
commit | 9ba3fc3e3d12c9ef00dcb0222b7ea0ccb5c4a091 (patch) | |
tree | 62e38c2d138b9ca6e8c685e08084be42c3b1ef63 /libavcodec/mpeg4videodec.c | |
parent | 58c120a9290eef057dbf26761a4f89b7f67bbde1 (diff) | |
download | ffmpeg-9ba3fc3e3d12c9ef00dcb0222b7ea0ccb5c4a091.tar.gz |
mpeg4videodec: move sprite_brightness_change from MpegEncContext to Mpeg4DecContext
Diffstat (limited to 'libavcodec/mpeg4videodec.c')
-rw-r--r-- | libavcodec/mpeg4videodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index 2e320cd968..20dd14bc9e 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -1789,7 +1789,7 @@ static int decode_vol_header(Mpeg4DecContext *ctx, GetBitContext *gb) return -1; } s->sprite_warping_accuracy = get_bits(gb, 2); - s->sprite_brightness_change = get_bits1(gb); + ctx->sprite_brightness_change = get_bits1(gb); if (ctx->vol_sprite_usage == STATIC_SPRITE) skip_bits1(gb); // low_latency_sprite } @@ -2204,7 +2204,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb) ctx->vol_sprite_usage == GMC_SPRITE)) { if (mpeg4_decode_sprite_trajectory(ctx, gb) < 0) return AVERROR_INVALIDDATA; - if (s->sprite_brightness_change) + if (ctx->sprite_brightness_change) av_log(s->avctx, AV_LOG_ERROR, "sprite_brightness_change not supported\n"); if (ctx->vol_sprite_usage == STATIC_SPRITE) |