Commit 1dc7afe1 authored by michaelni's avatar michaelni

b frame direct mode bugfix (bug found by CM <chenm001 at 163 dot com>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@832 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a2c88e57
......@@ -1434,7 +1434,7 @@ static inline int direct_search(MpegEncContext * s,
const int time_pb= time_pp - time_bp;
int bx, by;
int mx, my, mx2, my2;
uint8_t *ref_picture= s->me_scratchpad - (mb_x + 1 + (mb_y + 1)*s->linesize)*16;
uint8_t *ref_picture= s->me_scratchpad - (mb_x - 1 + (mb_y - 1)*s->linesize)*16;
int16_t (*mv_table)[2]= s->b_direct_mv_table;
uint16_t *mv_penalty= s->mv_penalty[s->f_code] + MAX_MV; // f_code of the prev frame
......
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