--- encoder.c 2011/02/03 15:12:34 1.135.2.4 +++ encoder.c 2010/12/29 22:39:35 1.137 @@ -21,7 +21,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: encoder.c,v 1.135.2.4 2011/02/03 15:12:34 Isibaar Exp $ + * $Id: encoder.c,v 1.137 2010/12/29 22:39:35 Isibaar Exp $ * ****************************************************************************/ @@ -1609,8 +1609,7 @@ memcpy((void *)((ptr_t)bs->start + pos), (void *)((ptr_t)pEnc->smpData[k].bs->start), len); - current->length += len; - pos += len; + current->length = pos += len; /* collect stats */ current->sStat.iTextBits += pEnc->smpData[k].sStat->iTextBits; @@ -2130,8 +2129,7 @@ if (current->sStat.kblks + current->sStat.mblks < (pParam->frame_drop_ratio * mb_width * mb_height) / 100 && - ( (pEnc->bframenum_head >= pEnc->bframenum_tail) || !(pEnc->mbParam.global_flags & XVID_GLOBAL_CLOSED_GOP)) && - (current->coding_type == P_VOP) ) + ( (pEnc->bframenum_head >= pEnc->bframenum_tail) || !(pEnc->mbParam.global_flags & XVID_GLOBAL_CLOSED_GOP)) ) { current->sStat.kblks = current->sStat.mblks = current->sStat.iTextBits = 0; current->sStat.ublks = mb_width * mb_height; @@ -2304,7 +2302,7 @@ image_setedges(f_ref, pEnc->mbParam.edged_width, pEnc->mbParam.edged_height, pEnc->mbParam.width, pEnc->mbParam.height, 0); - pEnc->reference->is_edged = 1; + pEnc->reference->is_edged = 1; } if (pEnc->reference->is_interpolated != 0) {