aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/wcmv.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-09-08 15:48:53 +0200
committerPaul B Mahol <onemda@gmail.com>2018-09-08 15:51:00 +0200
commitaf71a3ff3eb86c349bf7de09bea47575c4a882f7 (patch)
treef6cc242885b4132bdffd382e59b853cdad5931a0 /libavcodec/wcmv.c
parentd8ad8fd8bd25072b383ec4edf9f709ff52a4b9b3 (diff)
downloadffmpeg-af71a3ff3eb86c349bf7de09bea47575c4a882f7.tar.gz
avcodec/wcmv: fix output on big-endian with rgb565 format
Diffstat (limited to 'libavcodec/wcmv.c')
-rw-r--r--libavcodec/wcmv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wcmv.c b/libavcodec/wcmv.c
index 233427f3fa..384ceecd32 100644
--- a/libavcodec/wcmv.c
+++ b/libavcodec/wcmv.c
@@ -209,7 +209,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
int zret;
switch (avctx->bits_per_coded_sample) {
- case 16: avctx->pix_fmt = AV_PIX_FMT_RGB565; break;
+ case 16: avctx->pix_fmt = AV_PIX_FMT_RGB565LE; break;
case 24: avctx->pix_fmt = AV_PIX_FMT_BGR24; break;
case 32: avctx->pix_fmt = AV_PIX_FMT_BGRA; break;
default: av_log(avctx, AV_LOG_ERROR, "Unsupported bits_per_coded_sample: %d\n",