aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-02-26 00:08:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-02-26 00:08:27 +0000
commitaa5ee59eeed827902d637e35da53c69cb7f67aef (patch)
tree9588e2c2a609699f5ce6ee7de1826f2718040522
parent358b5b1a5958fa12b841aefe09e5e81c7d8bd346 (diff)
downloadffmpeg-aa5ee59eeed827902d637e35da53c69cb7f67aef.tar.gz
Simplify code in mv_pred.
Not benchmarked as this is petty much just code removial. Originally committed as revision 22066 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/h264_mvpred.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/h264_mvpred.h b/libavcodec/h264_mvpred.h
index a9bfa5adf7..892b0218cd 100644
--- a/libavcodec/h264_mvpred.h
+++ b/libavcodec/h264_mvpred.h
@@ -62,14 +62,14 @@ static inline int fetch_diagonal_mv(H264Context *h, const int16_t **C, int i, in
*C = h->mv_cache[list][scan8[0]-2];
if(!MB_FIELD
- && IS_INTERLACED(mb_types[h->left_mb_xy[0]])){
- SET_DIAG_MV(*2, >>1, h->left_mb_xy[0]+s->mb_stride, (s->mb_y&1)*2+(i>>4)-1);
+ && IS_INTERLACED(h->left_type[0])){
+ SET_DIAG_MV(*2, >>1, h->left_mb_xy[0]+s->mb_stride, (s->mb_y&1)*2+(i>>5));
assert(h->left_mb_xy[0] == h->left_mb_xy[1]);
}
if(MB_FIELD
- && !IS_INTERLACED(mb_types[h->left_mb_xy[0]])){
+ && !IS_INTERLACED(h->left_type[0])){
// left shift will turn LIST_NOT_USED into PART_NOT_AVAILABLE, but that's OK.
- SET_DIAG_MV(/2, <<1, h->left_mb_xy[i>=36], (- 1 + ((i-scan8[0])>>3)*2)&3);
+ SET_DIAG_MV(/2, <<1, h->left_mb_xy[i>=36], ((i>>2))&3);
}
}
#undef SET_DIAG_MV