[vlc-devel] commit: Fix kate module compilation for Big Endians (typo). ( Mounir Lamouri (volkmar) )

git version control git at videolan.org
Sat Oct 3 00:03:09 CEST 2009


vlc | branch: 1.0-bugfix | Mounir Lamouri (volkmar) <mounir.lamouri at gmail.com> | Fri Oct  2 23:06:14 2009 +0200| [72cd180f88bc03184079cd5185f9ec1362a14c02] | committer: Christophe Mutricy 

Fix kate module compilation for Big Endians (typo).

Signed-off-by: Christophe Mutricy <xtophe at videolan.org>
(cherry picked from commit 9b0fc8211dfa2333a7680afc328ab695d2ba2282)

Signed-off-by: Christophe Mutricy <xtophe at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72cd180f88bc03184079cd5185f9ec1362a14c02
---

 modules/codec/kate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index a6d8ef4..9fe0af9 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -864,7 +864,7 @@ static void PostprocessTigerImage( plane_t *p_plane, unsigned int i_width )
             if( a )
             {
 #ifdef WORDS_BIGENDIAN
-                uint8_t tmp = pixel[2];
+                uint8_t tmp = p_pixel[2];
                 p_pixel[0] = p_pixel[3] * 255 / a;
                 p_pixel[3] = a;
                 p_pixel[2] = p_pixel[1] * 255 / a;




More information about the vlc-devel mailing list