if ((pData->bDisplaying) && (pData->bRunning) && (!pData->bFreezing))
READ_CHUNK (read_mend){#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_READ_MEND, MNG_LC_START)#endif  if (!pData->bHasMHDR)                /* sequence checks */    MNG_ERROR (pData, MNG_SEQUENCEERROR)  if (iRawlen > 0)                     /* must not contain data! */    MNG_ERROR (pData, MNG_INVALIDLENGTH)#ifdef MNG_SUPPORT_DISPLAY  if ((pData->bDisplaying) && (pData->bRunning) && (!pData->bFreezing))  {                                    /* do something */    mng_retcode iRetcode = process_display_mend (pData);    if (iRetcode)                      /* on error bail out */      return iRetcode;  }#endif /* MNG_SUPPORT_DISPLAY */  pData->bHasMHDR = MNG_FALSE;         /* end of the line, bro! */#ifdef MNG_STORE_CHUNKS  if (pData->bStorechunks)  {                                    /* initialize storage */    mng_retcode iRetcode = ((mng_chunk_headerp)pHeader)->fCreate (pData, pHeader, ppChunk);    if (iRetcode)                      /* on error bail out */      return iRetcode;  }#endif /* MNG_STORE_CHUNKS */#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_READ_MEND, MNG_LC_END)#endif  return MNG_NOERROR;                  /* done */}