diff options
author | Gautam Ramakrishnan <gautamramk@gmail.com> | 2020-07-29 21:19:11 +0530 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-07-30 00:23:45 +0200 |
commit | 8821df6fcfc0a3b75c7079617f5917c031d0a63c (patch) | |
tree | 07896e75e74e1df829f106709ae711d4212c4398 | |
parent | 9d302efdf2bc1b48896e34574f5a675c6e441a81 (diff) | |
download | ffmpeg-8821df6fcfc0a3b75c7079617f5917c031d0a63c.tar.gz |
libavcodec/pgxdec Fix pix format selection error
This patch makes the pgx decoder select the correct
byte order instead of selecting big endian format for
16 bit images.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/pgxdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pgxdec.c b/libavcodec/pgxdec.c index 93b9f4e7a0..a72d6fe6fe 100644 --- a/libavcodec/pgxdec.c +++ b/libavcodec/pgxdec.c @@ -137,7 +137,7 @@ static int pgx_decode_frame(AVCodecContext *avctx, void *data, avctx->pix_fmt = AV_PIX_FMT_GRAY8; bpp = 8; } else if (depth <= 16) { - avctx->pix_fmt = AV_PIX_FMT_GRAY16BE; + avctx->pix_fmt = AV_PIX_FMT_GRAY16; bpp = 16; } else { av_log(avctx, AV_LOG_ERROR, "Maximum depth of 16 bits supported.\n"); |