summaryrefslogtreecommitdiff
path: root/libavcodec/truemotion1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-09-10 20:42:57 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-10 22:17:27 +0200
commit151312890c77d65b581d0ae543c63485bdb5f44a (patch)
treef2e3e953d08705c8eafb2083bc02ab7fc436bbfb /libavcodec/truemotion1.c
parent342ead4491660466a2eee7c170ff8da3c02a0e87 (diff)
downloadffmpeg-151312890c77d65b581d0ae543c63485bdb5f44a.tar.gz
avcodec/truemotion1: Simplify code using AV_PIX_FMT_0RGB32
Suggested-by: carl Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/truemotion1.c')
-rw-r--r--libavcodec/truemotion1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c
index 921bc5a75e..b8d0de4686 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 = HAVE_BIGENDIAN ? AV_PIX_FMT_0RGB : AV_PIX_FMT_BGR0;
+ new_pix_fmt = AV_PIX_FMT_0RGB32;
width_shift = 1;
} else
new_pix_fmt = AV_PIX_FMT_RGB555; // RGB565 is supported as well