if ((pData->bDisplaying) && (pData->bRunning) && (!pData->bFreezing)) { iRetcode = process_display_ijng (pData);  if (iRetcode)                     return iRetcode; }
READ_CHUNK (read_ijng){#ifdef MNG_SUPPORT_TRACE  MNG_TRACE (pData, MNG_FN_READ_IJNG, MNG_LC_START)#endif                                       /* sequence checks */  if ((!pData->bHasMHDR) || (!pData->bHasDHDR))    MNG_ERROR (pData, MNG_SEQUENCEERROR)  if (iRawlen != 0)                    /* gotta be empty */    MNG_ERROR (pData, MNG_INVALIDLENGTH)#ifdef MNG_SUPPORT_DISPLAY  {    mng_retcode iRetcode = create_ani_ijng (pData);    if (iRetcode)                      /* on error bail out */      return iRetcode;    if ((pData->bDisplaying) && (pData->bRunning) && (!pData->bFreezing))    {      iRetcode = process_display_ijng (pData);      if (iRetcode)                    /* on error bail out */        return iRetcode;    }  }#endif /* MNG_SUPPORT_DISPLAY */#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_IJNG, MNG_LC_END)#endif  return MNG_NOERROR;                  /* done */}