[FFmpeg-cvslog] vp9: more aligned zeroes.
Ronald S. Bultje
git at videolan.org
Sun Feb 9 18:13:56 CET 2014
ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Wed Jan 22 20:51:54 2014 -0500| [1dc8559e25b4e51fa0c0570a43fa085c0e5ac23b] | committer: Clément Bœsch
vp9: more aligned zeroes.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1dc8559e25b4e51fa0c0570a43fa085c0e5ac23b
---
libavcodec/vp9.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 01cf4e9..b612d53 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -1201,7 +1201,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;
@@ -1317,7 +1317,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++)
More information about the ffmpeg-cvslog
mailing list