dgallegos / edidreader

JavaScript EDID Parser
MIT License
84 stars 14 forks source link

Uninitialized varialbles: AUDIO_LATENCY_ADDRESS, I_AUDIO_LATENCY_ADDRESS #8

Open faljse opened 7 years ago

faljse commented 7 years ago

Hi, I did a quick typescript conversion and noticed that those variables are not initialized:

  // If Latency fields are present
  if(vendorBlock.latencyPresent && (blockLength >= AUDIO_LATENCY_ADDRESS))
  {
(...)
  }

  // If Interlaced Latency fields are present
  if(vendorBlock.iLatencyPresent && (blockLength >= I_AUDIO_LATENCY_ADDRESS))
  {
(...)
  }

https://github.com/dgallegos/edidreader/blob/master/app/js/edid.js#L1006

Since my edid isn't good enough i can't figure those values out :(