aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-09-01 16:44:10 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-09-04 09:33:43 -0400
commit339550e7c80e5ef1d555b72225f1fd4936c3fb70 (patch)
tree6e422b809c69eb6289996dbe97d76ad668ae87f4 /libavcodec/vp9.c
parentfb0466699575724923aeddc4490302180dfdf4af (diff)
downloadffmpeg-339550e7c80e5ef1d555b72225f1fd4936c3fb70.tar.gz
vp9: reset segmentation information on context reset.
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 4503ed7c4c..7035512242 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -707,6 +707,7 @@ static int decode_frame_header(AVCodecContext *ctx,
s->lf_delta.ref[3] = -1;
s->lf_delta.mode[0] = 0;
s->lf_delta.mode[1] = 0;
+ memset(s->segmentation.feat, 0, sizeof(s->segmentation.feat));
}
s->filter.level = get_bits(&s->gb, 6);
sharp = get_bits(&s->gb, 3);