avcodec/truemotion1: use BGR0/0RGB
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Sep 2015 14:30:11 +0000 (16:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Sep 2015 14:36:47 +0000 (16:36 +0200)
The alpha channel in the fate sample contains random trash, not alpha

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion1.c

index 14c964d..921bc5a 100644 (file)
@@ -396,7 +396,7 @@ static int truemotion1_decode_header(TrueMotion1Context *s)
     }
 
     if (compression_types[header.compression].algorithm == ALGO_RGB24H) {
-        new_pix_fmt = AV_PIX_FMT_RGB32;
+        new_pix_fmt = HAVE_BIGENDIAN ? AV_PIX_FMT_0RGB : AV_PIX_FMT_BGR0;
         width_shift = 1;
     } else
         new_pix_fmt = AV_PIX_FMT_RGB555; // RGB565 is supported as well