OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57d2bce
)
b frame direct mode bugfix (bug found by CM <chenm001 at 163 dot com>)
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 31 Jul 2002 08:01:29 +0000
(08:01 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 31 Jul 2002 08:01:29 +0000
(08:01 +0000)
Originally committed as revision 832 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/motion_est.c
patch
|
blob
|
history
diff --git
a/libavcodec/motion_est.c
b/libavcodec/motion_est.c
index
21d1a74
..
ffc251d
100644
(file)
--- a/
libavcodec/motion_est.c
+++ b/
libavcodec/motion_est.c
@@
-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