changeset 12245:ca82c3ce90c1 libavcodec

VP8: use AV_ZERO32 instead of AV_WN32A where relevant
author darkshikari
date Fri, 23 Jul 2010 10:42:19 +0000
parents 49c9a10309dd
children 3c841933cf78
files vp8.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/vp8.c	Fri Jul 23 10:34:21 2010 +0000
+++ b/vp8.c	Fri Jul 23 10:42:19 2010 +0000
@@ -667,7 +667,7 @@
             mb->bmv[n].x = base_mv->x + read_mv_component(c, s->prob->mvc[1]);
             break;
         case VP8_SUBMVMODE_ZERO4X4:
-            AV_WN32A(&mb->bmv[n], 0);
+            AV_ZERO32(&mb->bmv[n]);
             break;
         case VP8_SUBMVMODE_LEFT4X4:
             AV_WN32A(&mb->bmv[n], left);
@@ -749,7 +749,7 @@
             mb->mv = mb->bmv[decode_splitmvs(s, c, mb, &best) - 1];
             break;
         case VP8_MVMODE_ZERO:
-            AV_WN32A(&mb->mv, 0);
+            AV_ZERO32(&mb->mv);
             break;
         case VP8_MVMODE_NEAREST:
             clamp_mv(s, &mb->mv, &near[0], mb_x, mb_y);
@@ -776,7 +776,7 @@
         s->chroma_pred_mode = vp8_rac_get_tree(c, vp8_pred8x8c_tree, s->prob->pred8x8c);
         mb->ref_frame = VP56_FRAME_CURRENT;
         mb->partitioning = VP8_SPLITMVMODE_NONE;
-        AV_WN32A(&mb->bmv[0], 0);
+        AV_ZERO32(&mb->bmv[0]);
     }
 }