Mercurial > libavcodec.hg
changeset 5430:d248295bd595 libavcodec
avoid 2 additions (1 cpu cycle) per MB
author | michael |
---|---|
date | Tue, 31 Jul 2007 20:52:49 +0000 |
parents | 4e7308c09d2e |
children | 192360fa9b06 |
files | mpeg12.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg12.c Tue Jul 31 20:44:48 2007 +0000 +++ b/mpeg12.c Tue Jul 31 20:52:49 2007 +0000 @@ -1776,8 +1776,8 @@ } 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);