I had this issue with the CVS version as well.  I had to make a change to 
utils/cpu_accel.c to use memalign rather than posix_memalign in bufalloc().  It now 
looks like this:

void *bufalloc( size_t size )          
{
   static size_t simd_alignment = 16;
   static int bufalloc_init = 0;
   void *buf;

//   printf("Enter bufalloc\n");
   if( !bufalloc_init )
   {
#ifdef HAVE_X86CPU 
      if( (cpu_accel() &  (ACCEL_X86_SSE|ACCEL_X86_3DNOW)) != 0 )
      {
         simd_alignment = 64;
         bufalloc_init = 1;
      }
#endif      
   }
      
   buf = memalign(simd_alignment, size );
   if (buf == NULL)
      mjpeg_error_exit1("malloc failed");

// if( posix_memalign( &buf, simd_alignment, size ) !=0 )
//    mjpeg_error_exit1("malloc failed");

//   printf("Align %lx %lx\n", buf, simd_alignment);
   return buf;
}

I would assume this is caused by some glibc bug.  I'm using Red Hat 8.0.  I don't 
think I've ever upgraded my glib version.  I appear to have versions 1.2.10-8 and 
2.3.2-4.80.

-- Ray


On Tue, 13 Jan 2004 23:23:34 -0600 (CST)
"T.E." <[EMAIL PROTECTED]> wrote:

> 
> **ERROR: [mpeg2enc] could not allocate 133056 bytes aligned on a 64 byte
> boundary
> 
> Thanks
> 
> Thomas
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> _______________________________________________
> Mjpeg-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to