h264bsdActivateParamSets: Prevent multiplication overflow.

Report MEMORY_ALLOCATION_ERROR if pStorage->picSizeInMbs would
exceed UINT32_MAX bytes.

Bug: 28532266
Change-Id: Ia6f11efb18818afcdb5fa2a38a14f2a2d8c8447a

u32 h264bsdIsEndOfPicture(storage_t *pStorage)
{

/* Variables */

    u32 i, tmp;

/* Code */

 /* primary picture */
 if (!pStorage->sliceHeader[0].redundantPicCnt)
 {
 if (pStorage->slice->numDecodedMbs == pStorage->picSizeInMbs)
 return(HANTRO_TRUE);
 }
 else
 {
 for (i = 0, tmp = 0; i < pStorage->picSizeInMbs; i++)
            tmp += pStorage->mb[i].decoded ? 1 : 0;

 if (tmp == pStorage->picSizeInMbs)
 return(HANTRO_TRUE);
 }

 return(HANTRO_FALSE);

}

u32 h264bsdIsEndOfPicture(storage_t *pStorage)
{

/* Variables */

    u32 i, tmp;

/* Code */

 /* primary picture */
 if (!pStorage->sliceHeader[0].redundantPicCnt)
 {
 if (pStorage->slice->numDecodedMbs == pStorage->picSizeInMbs)
 return(HANTRO_TRUE);
 }
 else
 {
 for (i = 0, tmp = 0; i < pStorage->picSizeInMbs; i++)
            tmp += pStorage->mb[i].decoded ? 1 : 0;

 if (tmp == pStorage->picSizeInMbs)
 return(HANTRO_TRUE);
 }

 return(HANTRO_FALSE);

}
