mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
avcodec/truemotion1: use BGR0/0RGB
The alpha channel in the fate sample contains random trash, not alpha Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
67fe1a2b61
commit
a4d17c9a70
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user