node-video-lib
node-video-lib copied to clipboard
Stuck in infinite while loop on a corrupt video file
Running VideoLib.MovieParser.parse on a corrupt video file, the _findMoovAtom method in lib/mp4/parser-impl.js get stuck in an infinite while loop on line 51. The variable pos does not update. On line 65, it will call reader.read, but it will return false and thus pos has not advanced and the loop continues forever.
A simple else after line 69 with pos++ will fix it, but as I'm not familiar with the code, I'm not sure this is the right approach.