r9843 - trunk/libavcodec/mpeg12.c
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);
participants (1)
-
subversion@mplayerhq.hu