Please upload a sample file. If you dig round mlv_dump code it says following.
Error related to int ret. Frame size?
/* this block will load an image from a MLV file, so use its reported frame size for future use */
if(subtract_mode)
{
printf("Loading subtract (dark) frame '%s'\n", subtract_filename);
int ret = load_frame(subtract_filename, &frame_sub_buffer, &subtract_frame_buffer_size);
Your whole error code snippet from mlv_dump.c
int ret = lj92_open(&handle, (uint8_t *)frame_buffer, frame_buffer_size, &lj92_width, &lj92_height, &lj92_bitdepth, &lj92_components);
/* this is the raw data size with 16 bit words. it's just temporary */
size_t out_size = lj92_width * lj92_height * sizeof(uint16_t) * lj92_components;
if(ret == LJ92_ERROR_NONE)
{
if(verbose)
{
print_msg(MSG_INFO, " LJ92: Decompressing\n");
print_msg(MSG_INFO, " LJ92: %dx%dx%d %d bpp (%d bytes buffer)\n", lj92_width, lj92_height, lj92_components, lj92_bitdepth, out_size);
}
}
else
{
print_msg(MSG_ERROR, " LJ92: Failed (%d)\n", ret);
goto abort;
}