[FFmpeg-cvslog] avcodec/truemotion1: use BGR0/0RGB
Michael Niedermayer
git at videolan.org
Thu Sep 10 17:31:07 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Sep 10 16:30:11 2015 +0200| [a4d17c9a706b2219c30657ce4d004337903a6c69] | committer: Michael Niedermayer
avcodec/truemotion1: use BGR0/0RGB
The alpha channel in the fate sample contains random trash, not alpha
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a4d17c9a706b2219c30657ce4d004337903a6c69
---
libavcodec/truemotion1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c
index 14c964d..921bc5a 100644
--- a/libavcodec/truemotion1.c
+++ b/libavcodec/truemotion1.c
@@ -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
More information about the ffmpeg-cvslog
mailing list