[FFmpeg-cvslog] r9843 - trunk/libavcodec/mpeg12.c

michael subversion
Tue Jul 31 22:52:49 CEST 2007


Author: michael
Date: Tue Jul 31 22:52:49 2007
New Revision: 9843

Log:
avoid 2 additions (1 cpu cycle) per MB


Modified:
   trunk/libavcodec/mpeg12.c

Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c	(original)
+++ trunk/libavcodec/mpeg12.c	Tue Jul 31 22:52:49 2007
@@ -1776,8 +1776,8 @@ static int mpeg_decode_slice(Mpeg1Contex
         }
 
         s->dest[0] += 16 >> lowres;
-        s->dest[1] += 16 >> (s->chroma_x_shift + lowres);
-        s->dest[2] += 16 >> (s->chroma_x_shift + lowres);
+        s->dest[1] +=(16 >> lowres) >> s->chroma_x_shift;
+        s->dest[2] +=(16 >> lowres) >> s->chroma_x_shift;
 
         MPV_decode_mb(s, s->block);
 




More information about the ffmpeg-cvslog mailing list