projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f16af0
)
i think this if() is useless lets abuse our users to test this ;)
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 21 Dec 2006 15:21:44 +0000
(15:21 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 21 Dec 2006 15:21:44 +0000
(15:21 +0000)
Originally committed as revision 7344 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
a5d5e57
..
3fb0d5f
100644
(file)
--- a/
libavcodec/motion_est.c
+++ b/
libavcodec/motion_est.c
@@
-119,6
+119,7
@@
static av_always_inline int cmp(MpegEncContext *s, const int x, const int y, con
int d;
//FIXME check chroma 4mv, (no crashes ...)
if(flags&FLAG_DIRECT){
+ assert(x >= c->xmin && hx <= c->xmax<<(qpel+1) && y >= c->ymin && hy <= c->ymax<<(qpel+1));
if(x >= c->xmin && hx <= c->xmax<<(qpel+1) && y >= c->ymin && hy <= c->ymax<<(qpel+1)){
const int time_pp= s->pp_time;
const int time_pb= s->pb_time;