Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

JPEG 2000 / XL viewer for DOS (Users)

posted by RayeR Homepage, CZ, 12.09.2023, 05:52

> Re:
> no enought memory under win xp (2013)
>
> So they did
> change
> memalign() arguments to match Linux.

But this is not the problem. Current libc declares:
void *memalign(size_t _align, size_t _amt);

and OpenJPEG uses the right argument order

#ifdef HAVE_MEMALIGN
extern void* memalign(size_t, size_t);
#undef opj_aligned_malloc
#define opj_aligned_malloc(size) memalign(16, (size))
#undef opj_aligned_free
#define opj_aligned_free(m) free(m)
#endif

The problem is if align is > 8, then it crashes :\

Maybe this is the cause why x264/ffmpeg crashed with enabled some inline asm optimized mmx/sse code that I disabled, long time ago, don't remember exactly...

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 119 users online (0 registered, 119 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum