Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd6a6af9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "mp3dec: Zero initialize decoder memory during initialization" into...

Merge "mp3dec: Zero initialize decoder memory during initialization" into rvc-dev am: f8b4f9a0 am: 89f918f2 am: 8ebaf1cc

Change-Id: I7c1a8849349d01eb5c7b9347f3dd8a6d9f6484c9
parents c0fed754 8ebaf1cc
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -659,20 +659,12 @@ void pvmp3_InitDecoder(tPVMP3DecoderExternal *pExt,
    huffcodetab       *pHuff;

    pVars = (tmp3dec_file *)pMem;

    pVars->num_channels = 0;
    memset(pVars, 0, sizeof(*pVars));

    pExt->totalNumberOfBitsUsed = 0;
    pExt->inputBufferCurrentLength = 0;
    pExt->inputBufferUsedLength    = 0;

    pVars->mainDataStream.offset = 0;

    pv_memset((void*)pVars->mainDataBuffer,
              0,
              BUFSIZE*sizeof(*pVars->mainDataBuffer));


    pVars->inputStream.pBuffer = pExt->pInputBuffer;

    /*