Interesting. NI and BAMWorkshop seem to open it ok, but BAMWorkshop II, WinBAM, and bamresize (obviously) don't. DLTCEP throws the error message "Animation loaded with errors"
I have seen two different strategies used to load (and un-RLE) frame data from a BAM. The first is to jump to OffsetToFrameData and start reading bytes. If the frame data is RLEd, it is un-RLEd as bytes are being read until Width*Height number of bytes is reached. The second is to read a block of data from OffsetToFrameData of the current frame to OffsetToFrameData of the next numerically higher frame data offset, then un-RLE the whole thing. The error you have reported would make since if NI uses something analogous to the 1st method while bamresize uses something similar to the 2nd AND there are unused bytes between the blocks of frame data. I haven't dusted off the bamresize source code to verify this yet, tho.
After poking CDMF4G12.BAM for a few minutes, the above scenario seems to fit. In fact, my work-in-progress, internal-use-only BAM analyzer reports:
W: SizeOfFrameData>BytesReadFrameData (93184>83384)I'll dig up bamresize off my external HD and take a look (and maybe put it on github while I'm at it...) How urgently do you need a fix?
It's not urgent. I have already worked around the issue by decoding and re-encoding the affected files with NI's BAM Converter. Only the two mentioned files (out of over 1000) were making trouble.