Browse Source

avcodec/truemotion1: Simplify code using AV_PIX_FMT_0RGB32

Suggested-by: carl
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
Michael Niedermayer 10 years ago
parent
commit
151312890c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/truemotion1.c

+ 1
- 1
libavcodec/truemotion1.c View File

@@ -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


Loading…
Cancel
Save