--- encoder.c 2010/12/29 22:39:35 1.137 +++ encoder.c 2010/12/31 10:17:29 1.138 @@ -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.137 2010/12/29 22:39:35 Isibaar Exp $ + * $Id: encoder.c,v 1.138 2010/12/31 10:17:29 Isibaar Exp $ * ****************************************************************************/ @@ -1609,7 +1609,8 @@ memcpy((void *)((ptr_t)bs->start + pos), (void *)((ptr_t)pEnc->smpData[k].bs->start), len); - current->length = pos += len; + current->length += len; + pos += len; /* collect stats */ current->sStat.iTextBits += pEnc->smpData[k].sStat->iTextBits;