Well with a little more digging I have found that it maybe CPU Related,
compiled the 1.6.1.93 on my fileserver which is a AMD K6-3 450 and
everything works fine when using mpeg2enc and the
#define HAVE_POSIX_MEMALIGN 1 is set But with the Same OS Version with my
Athlon Slot-A Tbird it will not work.
My other System Is a Slot A Athlon also but it is a Classic and does not
have the Same Version of the OS, But it also seems to work fine.
I will be upgrading to a Athlon XP 2400+ Maybe today, Will see what
happens then with the Current OS SuSE 7.3.
Strange
Thomas
On Wed, 14 Jan 2004, Ray Cole wrote:
> 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
>
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users