[svn] / branches / dev-api-3 / xvidcore / src / encoder.c Repository:
ViewVC logotype

Diff of /branches/dev-api-3/xvidcore/src/encoder.c

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

revision 631, Thu Nov 7 10:31:03 2002 UTC revision 642, Mon Nov 11 20:53:34 2002 UTC
# Line 39  Line 39 
39   *             MinChen <chenm001@163.com>   *             MinChen <chenm001@163.com>
40   *  14.04.2002 added FrameCodeB()   *  14.04.2002 added FrameCodeB()
41   *   *
42   *  $Id: encoder.c,v 1.76.2.16 2002-11-07 10:28:15 suxen_drol Exp $   *  $Id: encoder.c,v 1.76.2.17 2002-11-11 20:53:34 Isibaar Exp $
43   *   *
44   ****************************************************************************/   ****************************************************************************/
45    
# Line 981  Line 981 
981                   * NB : sequences like "IIBB" decode fine with msfdam but,                   * NB : sequences like "IIBB" decode fine with msfdam but,
982                   *      go screwy with divx 5.00                   *      go screwy with divx 5.00
983                   */                   */
984          } else if (pEnc->bframenum_tail >= pEnc->mbParam.max_bframes || mode != 0) {          } else if ((pEnc->bframenum_tail >= pEnc->mbParam.max_bframes) || (mode != 0)) {
985    
986                  /*                  /*
987                   * This will be coded as a Predicted Frame                   * This will be coded as a Predicted Frame
988                   */                   */
# Line 998  Line 999 
999                  pFrame->intra = 0;                  pFrame->intra = 0;
1000                  pEnc->flush_bframes = 1;                  pEnc->flush_bframes = 1;
1001    
1002                  if ((pEnc->global & XVID_GLOBAL_PACKED)) {                  if ((pEnc->global & XVID_GLOBAL_PACKED) && (pEnc->bframenum_tail > 0)) {
1003                          BitstreamPadAlways(&bs);                          BitstreamPadAlways(&bs);
1004                          input_valid = 0;                          input_valid = 0;
1005                          goto ipvop_loop;                          goto ipvop_loop;

Legend:
Removed from v.631  
changed lines
  Added in v.642

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