Mercurial > libavcodec.hg
changeset 1963:2fd0c3f311bf libavcodec
sanity checks
author | michael |
---|---|
date | Sat, 24 Apr 2004 03:43:43 +0000 |
parents | 1d5abf80fa41 |
children | 2b16a3c32318 |
files | motion_est.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/motion_est.c Sat Apr 24 03:36:37 2004 +0000 +++ b/motion_est.c Sat Apr 24 03:43:43 2004 +0000 @@ -997,6 +997,8 @@ 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 @@ 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);