vp8: reset loopfilter delta values at keyframes.
authorSami Pietila <samipietila@google.com>
Fri, 12 Oct 2012 14:12:49 +0000 (07:12 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 12 Oct 2012 14:17:38 +0000 (07:17 -0700)
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/vp8.c

index e365877..2766c9e 100644 (file)
@@ -353,6 +353,7 @@ static int decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
         memcpy(s->prob->pred8x8c , vp8_pred8x8c_prob_inter , sizeof(s->prob->pred8x8c));
         memcpy(s->prob->mvc      , vp8_mv_default_prob     , sizeof(s->prob->mvc));
         memset(&s->segmentation, 0, sizeof(s->segmentation));
         memcpy(s->prob->pred8x8c , vp8_pred8x8c_prob_inter , sizeof(s->prob->pred8x8c));
         memcpy(s->prob->mvc      , vp8_mv_default_prob     , sizeof(s->prob->mvc));
         memset(&s->segmentation, 0, sizeof(s->segmentation));
+        memset(&s->lf_delta, 0, sizeof(s->lf_delta));
     }
 
     ff_vp56_init_range_decoder(c, buf, header_size);
     }
 
     ff_vp56_init_range_decoder(c, buf, header_size);