[XviD-devel] Re: [transcode-users] "avi video write error video export module error" with xvid export module (fwd)

Christoph Lampert xvid-devel@xvid.org
Thu, 31 Oct 2002 16:15:51 +0100 (CET)


Hi,

I knew that this code is bad... just like the "compiler detection" which
fails to compile with icc... :(

gruel

---------- Forwarded message ----------
Date: Thu, 31 Oct 2002 14:49:41 +0100
From: Claudio Jeker <cjeker@diehard.n-r-g.com>
Reply-To: transcode-users@theorie.physik.uni-goettingen.de
To: transcode-users@theorie.physik.uni-goettingen.de
Subject: Re: [transcode-users] "avi video write error video export module
    error" with xvid export module

On Thu, Oct 31, 2002 at 02:04:40PM +0100, Claudio Jeker wrote:
> On Thu, Oct 31, 2002 at 11:14:16AM +0100, Honza Dusak wrote:
> > Hello,
> >   I have recently upgraded transcode to v0.6.2.20021010 ( FreeBSD 4.7
> > system ) . When encoding with xvid codec It fails with following
> > ouput 
> > 
> What version of xvid are you using?
> I'm running transcode-0.6.2.20021021 on FreeBSD 4.7 and I can run the xvid
> encoder but the output files are damaged.
> I tried xvid_snapshot_20020728 and the dev-api-3 cvs branch with no
> success.
> 
> I installed transcode-0.6.2.20021021 with the dev-api-3 cvs branch xvid on
> a linux box where it works. My guess is that xvid on FreeBSD is broken.
> 

Found the bug. XviD is extremly stupid if it has to decide when to use
byte swapping for big endian machines.
>From divx4.h:
#if ((! defined(ARCH_IS_BIG_ENDIAN)) && (! defined (WIN32)) && \
	(! defined (LINUX)) && (! defined (BEOS)))
#define ARCH_IS_BIG_ENDIAN
#endif

Is not only bad practise but also completly wrong. With this FreeBSD is
big endian and Linux PPC would be little endian if ARCH_IS_BIG_ENDIAN is not
defined :(

Fix: remove this ARCH_IS_BIG_ENDIAN shit in divx4.h and suddenly the
movies start to play correctly.

-- 
:wq Claudio
_______________________________________________
transcode-users mailing list
transcode-users@theorie.physik.uni-goettingen.de
http://www.theorie.physik.uni-goettingen.de/mailman/listinfo/transcode-users