[XviD-devel] [PATCH] Long standing error in xvid_decraw for big endian hosts

Michael Militzer michael at xvid.org
Mon Aug 1 12:54:37 CEST 2005


Applied your patches - thanks!

Michael


Quoting Edouard Gomez <ed.gomez at free.fr>:

> Please apply after my last patch.
> 
> # HG changeset patch
> # User ed.gomez at free.fr
> # Node ID 4fea89b12adc00ce55a53bb01a06c58188461880
> # Parent  5397bb5706a7c402c6438c21e4641c5edb729943
> Long standing error in xvid_decraw for big endian hosts
> 
> 
> >From ed.gomez, spoted by Paul Kurucz ptk9417 at ritvax.isc.rit.edu
>  * No width and height declared in write_tga bug.
> 
> diff -r 5397bb5706a7 -r 4fea89b12adc examples/xvid_decraw.c
> --- a/examples/xvid_decraw.c	Mon Jul 25 19:45:25 2005
> +++ b/examples/xvid_decraw.c	Tue Jul 26 23:32:52 2005
> @@ -574,7 +574,7 @@
>  #else
>  	{
>  		int i;
> -		for (i=0; i<width*height*BPP;i+=BPP) {
> +		for (i=0; i<XDIM*YDIM*BPP;i+=BPP) {
>  			if (BPP == 1) {
>  				fputc(*(image+i), f);
>  			} else if (BPP == 2) {
> 
> -- 
> Edouard Gomez
> _______________________________________________
> XviD-devel mailing list
> XviD-devel at xvid.org
> http://list.xvid.org/mailman/listinfo/xvid-devel
> 






More information about the XviD-devel mailing list