[cvs] / xvidcore / src / encoder.c Repository:
ViewVC logotype

Diff of /xvidcore/src/encoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.95.2.21, Mon May 12 12:27:32 2003 UTC revision 1.95.2.22, Thu May 15 12:58:26 2003 UTC
# Line 1079  Line 1079 
1079                          type = MEanalysis(&pEnc->reference->image, pEnc->current,                          type = MEanalysis(&pEnc->reference->image, pEnc->current,
1080                                          &pEnc->mbParam, pEnc->mbParam.iMaxKeyInterval,                                          &pEnc->mbParam, pEnc->mbParam.iMaxKeyInterval,
1081                                          pEnc->iFrameNum, pEnc->bframenum_tail, xFrame->bframe_threshold);                                          pEnc->iFrameNum, pEnc->bframenum_tail, xFrame->bframe_threshold);
   
             if (type == B_VOP && !(pEnc->current->vop_flags & XVID_VOP_DYNAMIC_BFRAMES)) {  
                 type = P_VOP;   /* disable dynamic bframes */  
             }  
1082                  }                  }
1083          }          }
1084    
1085      /* bframes buffer overflow check */      /* bframes buffer overflow check */
1086      if (type != I_VOP) {      if (type == B_VOP && pEnc->bframenum_tail >= pEnc->mbParam.max_bframes) {
         if (pEnc->bframenum_tail >= pEnc->mbParam.max_bframes) {  
1087              type = P_VOP;              type = P_VOP;
         }else{  
             type = B_VOP;  
         }  
1088      }      }
1089    
1090          pEnc->iFrameNum++;          pEnc->iFrameNum++;

Legend:
Removed from v.1.95.2.21  
changed lines
  Added in v.1.95.2.22

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4