diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-24 03:43:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-24 03:43:43 +0000 |
commit | aacc6615f8e3863cd930d3a1ab2cd28d9838f0f5 (patch) | |
tree | 08e502d23c3568568bfbf0427772c0368a4a9b85 | |
parent | 9964df63ee88fe7402ee8c4291208792a726bf6d (diff) | |
download | ffmpeg-aacc6615f8e3863cd930d3a1ab2cd28d9838f0f5.tar.gz |
sanity checks
Originally committed as revision 3052 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/motion_est.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/motion_est.c b/libavcodec/motion_est.c index c2701fac15..9ccbf078d3 100644 --- a/libavcodec/motion_est.c +++ b/libavcodec/motion_est.c @@ -997,6 +997,8 @@ static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int c->stride<<=1; c->uvstride<<=1; init_interlaced_ref(s, 2); + + assert(s->flags & CODEC_FLAG_INTERLACED_ME); if(USES_LIST(mb_type, 0)){ int field_select0= p->ref_index[0][xy ]; @@ -1050,6 +1052,7 @@ static inline int check_input_motion(MpegEncContext * s, int mb_x, int mb_y, int c->stride>>=1; c->uvstride>>=1; }else if(IS_8X8(mb_type)){ + assert(s->flags & CODEC_FLAG_4MV); cmpf= s->dsp.sse[1]; chroma_cmpf= s->dsp.sse[1]; init_mv4_ref(s); |