[FFmpeg-cvslog] r24460 - trunk/libavcodec/vp8.c

darkshikari subversion
Fri Jul 23 12:42:19 CEST 2010


Author: darkshikari
Date: Fri Jul 23 12:42:19 2010
New Revision: 24460

Log:
VP8: use AV_ZERO32 instead of AV_WN32A where relevant

Modified:
   trunk/libavcodec/vp8.c

Modified: trunk/libavcodec/vp8.c
==============================================================================
--- trunk/libavcodec/vp8.c	Fri Jul 23 12:34:21 2010	(r24459)
+++ trunk/libavcodec/vp8.c	Fri Jul 23 12:42:19 2010	(r24460)
@@ -667,7 +667,7 @@ static int decode_splitmvs(VP8Context   
             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 @@ static void decode_mb_mode(VP8Context *s
             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 @@ static void decode_mb_mode(VP8Context *s
         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]);
     }
 }
 



More information about the ffmpeg-cvslog mailing list