Mercurial > libavcodec.hg
changeset 11083:a270b4c67089 libavcodec
ref_offset must be added after checking references validity.
author | michael |
---|---|
date | Sun, 07 Feb 2010 01:13:56 +0000 |
parents | f48de939cf88 |
children | 6e564ab180d1 |
files | h264_direct.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h264_direct.c Sat Feb 06 12:53:28 2010 +0000 +++ b/h264_direct.c Sun Feb 07 01:13:56 2010 +0000 @@ -434,9 +434,9 @@ 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;