Commit 50f8e985 authored by Michael Niedermayer's avatar Michael Niedermayer

ref_offset must be added after checking references validity.

Originally committed as revision 21661 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e49407ee
...@@ -434,9 +434,9 @@ single_col: ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment