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 |
|
|
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 |
*/ |
*/ |
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; |