chrisvm / node-djiparsetxt

Decrypts and parse DJI logs in node.
MIT License
16 stars 8 forks source link

Out of range with new dji "Fly" app txt file #14

Open lyapounov opened 4 years ago

lyapounov commented 4 years ago

On dji Fly app txt file, the call to parse_file returns

RangeError: index out of range at checkOffset (buffer.js:622:11) at Buffer.readUInt8 (buffer.js:660:5) at is_jpeg_soi (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:26:20) at FileParsingService.get_record_cache (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:110:28) at FileParsingService.parse_records (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:50:28) at Object.parse_file (/datas/www/dji/node_modules/node-djiparsetxt/dist/node-djiparsetxt.js:160:43)

lyapounov commented 4 years ago

here is the txt file

fltest.txt

chrisvm commented 4 years ago

Thanks for the issue report, will work on it when I have some time between projects. Should be an easy fix.

jfcisternasm commented 3 years ago

Hi, i'm using this library and have same issue with dji fly files. How can i help?