[FFmpeg-cvslog] vp9: reset segmentation information on context reset.

Ronald S. Bultje git at videolan.org
Fri Sep 4 16:07:45 CEST 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Tue Sep  1 16:44:10 2015 -0400| [339550e7c80e5ef1d555b72225f1fd4936c3fb70] | committer: Ronald S. Bultje

vp9: reset segmentation information on context reset.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=339550e7c80e5ef1d555b72225f1fd4936c3fb70
---

 libavcodec/vp9.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 4503ed7..7035512 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);



More information about the ffmpeg-cvslog mailing list