avcodec/fmvc: use correct pixel format on big-endian for 16 bpp
authorPaul B Mahol <onemda@gmail.com>
Sat, 8 Sep 2018 18:33:15 +0000 (20:33 +0200)
committerPaul B Mahol <onemda@gmail.com>
Sat, 8 Sep 2018 18:33:15 +0000 (20:33 +0200)
libavcodec/fmvc.c

index a06b90c..5778d7b 100644 (file)
@@ -530,7 +530,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
 
     switch (avctx->bits_per_coded_sample) {
     case 16:
-        avctx->pix_fmt = AV_PIX_FMT_RGB555;
+        avctx->pix_fmt = AV_PIX_FMT_RGB555LE;
         break;
     case 24:
         avctx->pix_fmt = AV_PIX_FMT_BGR24;