comparison h263.c @ 5445:5581a40c673a libavcodec

exchange the values of MV_DIR_FORWARD and MV_DIR_BACKWARD (this is more sane, matches the order of some other stuff and allows some simplifications)
author michael
date Wed, 01 Aug 2007 22:12:52 +0000
parents f15e5b4909e1
children 9f8219a3b86f
comparison
equal deleted inserted replaced
5444:38517a9edb50 5445:5581a40c673a
908 // printf("**mb x=%d y=%d\n", s->mb_x, s->mb_y); 908 // printf("**mb x=%d y=%d\n", s->mb_x, s->mb_y);
909 if (!s->mb_intra) { 909 if (!s->mb_intra) {
910 int i, cbp; 910 int i, cbp;
911 911
912 if(s->pict_type==B_TYPE){ 912 if(s->pict_type==B_TYPE){
913 static const int mb_type_table[8]= {-1, 2, 3, 1,-1,-1,-1, 0}; /* convert from mv_dir to type */ 913 static const int mb_type_table[8]= {-1, 3, 2, 1,-1,-1,-1, 0}; /* convert from mv_dir to type */
914 int mb_type= mb_type_table[s->mv_dir]; 914 int mb_type= mb_type_table[s->mv_dir];
915 915
916 if(s->mb_x==0){ 916 if(s->mb_x==0){
917 for(i=0; i<2; i++){ 917 for(i=0; i<2; i++){
918 s->last_mv[i][0][0]= 918 s->last_mv[i][0][0]=