--- estimation_rd_based.c 2004/03/22 22:36:24 1.2 +++ estimation_rd_based.c 2004/06/04 11:54:42 1.2.2.2 @@ -20,7 +20,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: estimation_rd_based.c,v 1.2 2004/03/22 22:36:24 edgomez Exp $ + * $Id: estimation_rd_based.c,v 1.2.2.2 2004/06/04 11:54:42 edgomez Exp $ * ****************************************************************************/ @@ -135,6 +135,7 @@ /* store current coeffs to pred_values[] for future prediction */ pCurrent[0] = qcoeff[0] * iDcScaler; + pCurrent[0] = CLIP(pCurrent[0], -2048, 2047); for (i = 1; i < 8; i++) { pCurrent[i] = qcoeff[i]; pCurrent[i + 7] = qcoeff[i * 8];