diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-25 12:51:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-25 12:51:32 +0000 |
commit | c2186cbddcc8e13608bc2243785b4dbc02700ac3 (patch) | |
tree | 6426c1b4f3a87389c1b0583c4a69f4afe22a3c42 /libavcodec/h264.h | |
parent | a5517dcc9a572826d5bae49e2709c65331e84a9d (diff) | |
download | ffmpeg-c2186cbddcc8e13608bc2243785b4dbc02700ac3.tar.gz |
unroll tiny and trivial loop. Same speed but clearer.
Originally committed as revision 22051 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 6f61c8a7d4..f443554f3e 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -1430,9 +1430,9 @@ static inline void write_back_motion(H264Context *h, int mb_type){ AV_ZERO128(mvd_dst); else{ AV_COPY64(mvd_dst, mvd_src + 8*3); - for(y=0; y<3; y++){ - AV_COPY16(mvd_dst + 3 + 3 - y, mvd_src + 3 + 8*y); - } + AV_COPY16(mvd_dst + 3 + 3, mvd_src + 3 + 8*0); + AV_COPY16(mvd_dst + 3 + 2, mvd_src + 3 + 8*1); + AV_COPY16(mvd_dst + 3 + 1, mvd_src + 3 + 8*2); } } |