aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2013-11-16 00:11:24 +0100
committerClément Bœsch <u@pkh.me>2013-11-16 17:13:33 +0100
commit7cd555dfa54a9b9b83749977e7eec3f023ff2b36 (patch)
treeb4bb5f8febe598fc488601e2e8ac89c576b1a279 /libavcodec
parentd28c79b0035c8f699be42bdf9df636edd9a78349 (diff)
downloadffmpeg-7cd555dfa54a9b9b83749977e7eec3f023ff2b36.tar.gz
avcodec/vp9: make last_invisible local.
Original change by one of these developers: Anton Khirnov <anton@khirnov.net> Diego Biurrun <diego@biurrun.de> Luca Barbato <lu_zero@gentoo.org> Martin Storsjö <martin@martin.st> See 97962b2 / 72ca830
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp9.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index d738482f88..05af2e8d60 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -98,7 +98,7 @@ typedef struct VP9Context {
// bitstream header
uint8_t profile;
uint8_t keyframe, last_keyframe;
- uint8_t invisible, last_invisible;
+ uint8_t invisible;
uint8_t use_last_frame_mvs;
uint8_t errorres;
uint8_t colorspace;
@@ -359,6 +359,7 @@ static int decode_frame_header(AVCodecContext *ctx,
{
VP9Context *s = ctx->priv_data;
int c, i, j, k, l, m, n, w, h, max, size2, res, sharp;
+ int last_invisible;
const uint8_t *data2;
/* general header */
@@ -381,11 +382,11 @@ static int decode_frame_header(AVCodecContext *ctx,
}
s->last_keyframe = s->keyframe;
s->keyframe = !get_bits1(&s->gb);
- s->last_invisible = s->invisible;
+ last_invisible = s->invisible;
s->invisible = !get_bits1(&s->gb);
s->errorres = get_bits1(&s->gb);
// FIXME disable this upon resolution change
- s->use_last_frame_mvs = !s->errorres && !s->last_invisible;
+ s->use_last_frame_mvs = !s->errorres && !last_invisible;
if (s->keyframe) {
if (get_bits_long(&s->gb, 24) != VP9_SYNCCODE) { // synccode
av_log(ctx, AV_LOG_ERROR, "Invalid sync code\n");