[FFmpeg-devel] [PATCH 3/6] vp9: more aligned zeroes.

Ronald S. Bultje rsbultje at gmail.com
Sat Feb 8 23:05:50 CET 2014


---
 libavcodec/vp9.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 8d96783..b75c493 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -1197,7 +1197,7 @@ static void fill_mv(VP9Context *s,
     VP9Block *b = s->b;
 
     if (mode == ZEROMV) {
-        memset(mv, 0, sizeof(*mv) * 2);
+        AV_ZERO64(mv);
     } else {
         int hp;
 
@@ -1314,7 +1314,8 @@ static void decode_mode(AVCodecContext *ctx)
         memset(&s->above_segpred_ctx[col], 0, w4);
         memset(&s->left_segpred_ctx[row7], 0, h4);
     }
-    if ((s->segmentation.enabled && s->segmentation.update_map) || s->keyframe) {
+    if (s->segmentation.enabled &&
+        (s->segmentation.update_map || s->keyframe || s->intraonly)) {
         uint8_t *segmap = s->frames[CUR_FRAME].segmentation_map;
 
         for (y = 0; y < h4; y++)
-- 
1.8.4



More information about the ffmpeg-devel mailing list