ref_offset must be added after checking references validity.

Originally committed as revision 21661 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Michael Niedermayer 15 years ago
parent e49407ee08
commit 50f8e98507
  1. 4
      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;

Loading…
Cancel
Save