[SCM] libav/experimental: Do not swap red and blue when decoding truemotion on big-endian.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:14:24 UTC 2013


The following commit has been merged in the experimental branch:
commit 751c5093c6a2b9149fb1ad86220b0bf35fded42c
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date:   Sat Aug 21 19:37:33 2010 +0000

    Do not swap red and blue when decoding truemotion
    on big-endian.
    
    Originally committed as revision 24862 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c
index 4306917..dace45d 100644
--- a/libavcodec/truemotion1.c
+++ b/libavcodec/truemotion1.c
@@ -178,11 +178,7 @@ static int make_ydt15_entry(int p1, int p2, int16_t *ydt)
     return (lo + (hi << 16)) << 1;
 }
 
-#if HAVE_BIGENDIAN
-static int make_cdt15_entry(int p2, int p1, int16_t *cdt)
-#else
 static int make_cdt15_entry(int p1, int p2, int16_t *cdt)
-#endif
 {
     int r, b, lo;
 
@@ -207,11 +203,7 @@ static int make_ydt16_entry(int p1, int p2, int16_t *ydt)
     return (lo + (hi << 16)) << 1;
 }
 
-#if HAVE_BIGENDIAN
-static int make_cdt16_entry(int p2, int p1, int16_t *cdt)
-#else
 static int make_cdt16_entry(int p1, int p2, int16_t *cdt)
-#endif
 {
     int r, b, lo;
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list