[FFmpeg-soc] [soc]: r778 - in jpeg2000: aecdec.c aecenc.c j2kdec.c j2kenc.c
k.nowosad
subversion at mplayerhq.hu
Tue Aug 14 14:00:19 CEST 2007
Author: k.nowosad
Date: Tue Aug 14 14:00:19 2007
New Revision: 778
Log:
changed bzero() into memset()
Modified:
jpeg2000/aecdec.c
jpeg2000/aecenc.c
jpeg2000/j2kdec.c
jpeg2000/j2kenc.c
Modified: jpeg2000/aecdec.c
==============================================================================
--- jpeg2000/aecdec.c (original)
+++ jpeg2000/aecdec.c Tue Aug 14 14:00:19 2007
@@ -75,7 +75,7 @@ static int exchange(AecState *aec, int l
void ff_aec_initdec(AecState *aec, uint8_t *bp)
{
- bzero(aec->contexts, 19*sizeof(AecContext));
+ memset(aec->contexts, 0, 19*sizeof(AecContext));
aec->contexts[AEC_CX_UNI].state = 46;
aec->contexts[AEC_CX_RL].state = 3;
aec->contexts[0].state = 4;
Modified: jpeg2000/aecenc.c
==============================================================================
--- jpeg2000/aecenc.c (original)
+++ jpeg2000/aecenc.c Tue Aug 14 14:00:19 2007
@@ -67,7 +67,7 @@ static void setbits(AecState *aec)
void ff_aec_initenc(AecState *aec, uint8_t *bp)
{
- bzero(aec->contexts, 19*sizeof(AecContext));
+ memset(aec->contexts, 0, 19*sizeof(AecContext));
aec->contexts[AEC_CX_UNI].state = 46;
aec->contexts[AEC_CX_RL].state = 3;
aec->contexts[0].state = 4;
Modified: jpeg2000/j2kdec.c
==============================================================================
--- jpeg2000/j2kdec.c (original)
+++ jpeg2000/j2kdec.c Tue Aug 14 14:00:19 2007
@@ -782,10 +782,10 @@ static int decode_cblk(J2kDecoderContext
int passno = cblk->npassess, pass_t = 2, bpno = cblk->nonzerobits - 1, i;
for (i = 0; i < height+2; i++)
- bzero(t1->flags[i], (width+2)*sizeof(int));
+ memset(t1->flags[i], 0, (width+2)*sizeof(int));
for (i = 0; i < height; i++)
- bzero(t1->data[i], width*sizeof(int));
+ memset(t1->data[i], 0, width*sizeof(int));
ff_aec_initdec(&t1->aec, cblk->data);
cblk->data[cblk->length] = 0xff;
Modified: jpeg2000/j2kenc.c
==============================================================================
--- jpeg2000/j2kenc.c (original)
+++ jpeg2000/j2kenc.c Tue Aug 14 14:00:19 2007
@@ -735,7 +735,7 @@ static void encode_cblk(J2kEncoderContex
int64_t wmsedec = 0;
for (i = 0; i < height+2; i++)
- bzero(t1->flags[i], (width+2)*sizeof(int));
+ memset(t1->flags[i], 0, (width+2)*sizeof(int));
for (i = 0; i < height; i++){
for (j = 0; j < width; j++)
More information about the FFmpeg-soc
mailing list