Commit a4d17c9a authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/truemotion1: use BGR0/0RGB

The alpha channel in the fate sample contains random trash, not alpha
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 67fe1a2b
...@@ -396,7 +396,7 @@ static int truemotion1_decode_header(TrueMotion1Context *s) ...@@ -396,7 +396,7 @@ static int truemotion1_decode_header(TrueMotion1Context *s)
} }
if (compression_types[header.compression].algorithm == ALGO_RGB24H) { 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; width_shift = 1;
} else } else
new_pix_fmt = AV_PIX_FMT_RGB555; // RGB565 is supported as well new_pix_fmt = AV_PIX_FMT_RGB555; // RGB565 is supported as well
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment