1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ref_offset must be added after checking references validity.

Originally committed as revision 21661 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-02-07 01:13:56 +00:00
parent e49407ee08
commit 50f8e98507

View File

@ -434,9 +434,9 @@ single_col:
continue; continue;
} }
ref0 = l1ref0[x8 + y8*b8_stride] + ref_offset; ref0 = l1ref0[x8 + y8*b8_stride];
if(ref0 >= 0) if(ref0 >= 0)
ref0 = map_col_to_list0[0][ref0]; ref0 = map_col_to_list0[0][ref0 + ref_offset];
else{ else{
ref0 = map_col_to_list0[1][l1ref1[x8 + y8*b8_stride] + ref_offset]; ref0 = map_col_to_list0[1][l1ref1[x8 + y8*b8_stride] + ref_offset];
l1mv= l1mv1; l1mv= l1mv1;