Browse Source

ref_offset must be added after checking references validity.

Originally committed as revision 21661 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 15 years ago
parent
commit
50f8e98507
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/h264_direct.c

+ 2
- 2
libavcodec/h264_direct.c View File

@@ -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