Commit a7a40ea3 authored by Erwin Houtsma's avatar Erwin Houtsma
Browse files

Playback of compressed raw footage.

Fix of malloc error.

--HG--
branch : crop_rec_4k
parent 33f83cb3c465
......@@ -1914,7 +1914,7 @@ static void mlv_play_mlv(char *filename, FILE **chunk_files, uint32_t chunk_coun
int mem_size = (buffer->frameSize + 0x1000) & ~0xFFF;
/* keep in mind the address must be aligned, alloc a few k more */
mlv_play_decomp_buf = malloc(mem_size + 0x1000);
mlv_play_decomp_buf = fio_malloc(mem_size + 0x1000);
if(!mlv_play_decomp_buf)
{
bmp_printf(FONT_MED, 20, 100, "failed to alloc mlv_play_decomp_buf");
......@@ -2849,6 +2849,12 @@ static unsigned int mlv_play_init()
Start_DecodeLosslessPath = (void*)0xFF3CB0D8;
Cleanup_DecodeLosslessPath = (void*)0xFF3CB23C;
}
if (is_camera("700D", "1.1.4"))
{
Setup_DecodeLosslessRawPath = (void*)0xFF4294DC;
Start_DecodeLosslessPath = (void*)0xFF4295A4;
Cleanup_DecodeLosslessPath = (void*)0xFF429708;
}
/* all functions known? having the semaphore is an indicator we can decompress */
if(Setup_DecodeLosslessRawPath && Start_DecodeLosslessPath && Cleanup_DecodeLosslessPath)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment