# HG changeset patch # User michael # Date 1122926501 0 # Node ID c6ab4b91a5c55163d8f5abb74ffc6866a9892a5f # Parent 636133fccbdccfa964445ad5b9dc5ccf856a675c fix assertion failure for mpeg2 encoding diff -r 636133fccbdc -r c6ab4b91a5c5 motion_est.c --- a/motion_est.c Mon Aug 01 14:47:07 2005 +0000 +++ b/motion_est.c Mon Aug 01 20:01:41 2005 +0000 @@ -1891,7 +1891,7 @@ { if(s->me_method>=ME_EPZS){ int score[8]; - int i, y, range= s->avctx->me_range; + int i, y, range= s->avctx->me_range ? s->avctx->me_range : (INT_MAX/2); uint8_t * fcode_tab= s->fcode_tab; int best_fcode=-1; int best_score=-10000000; @@ -1914,11 +1914,9 @@ fcode_tab[my + MAX_MV]); int j; - if(range){ if(mx >= range || mx < -range || my >= range || my < -range) continue; - } for(j=0; jpict_type==B_TYPE || s->current_picture.mc_mb_var[xy] < s->current_picture.mb_var[xy])