summaryrefslogtreecommitdiff
path: root/libavcodec/h264_direct.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-02-07 01:13:56 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-02-07 01:13:56 +0000
commit50f8e98507617f192af5b35279289bca0bf001b5 (patch)
tree7b149ea12f9f8546512a4ac328e3679893b79c86 /libavcodec/h264_direct.c
parente49407ee08081be92620a4e12ce6e6807e1654d5 (diff)
downloadffmpeg-50f8e98507617f192af5b35279289bca0bf001b5.tar.gz
ref_offset must be added after checking references validity.
Originally committed as revision 21661 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_direct.c')
-rw-r--r--libavcodec/h264_direct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_direct.c b/libavcodec/h264_direct.c
index f347e255db..9b6ca8a30f 100644
--- a/libavcodec/h264_direct.c
+++ b/libavcodec/h264_direct.c
@@ -434,9 +434,9 @@ single_col:
continue;
}
- ref0 = l1ref0[x8 + y8*b8_stride] + ref_offset;
+ ref0 = l1ref0[x8 + y8*b8_stride];
if(ref0 >= 0)
- ref0 = map_col_to_list0[0][ref0];
+ ref0 = map_col_to_list0[0][ref0 + ref_offset];
else{
ref0 = map_col_to_list0[1][l1ref1[x8 + y8*b8_stride] + ref_offset];
l1mv= l1mv1;