[FFmpeg-cvslog] libavcodec/pgxdec Fix pix format selection error

Gautam Ramakrishnan git at videolan.org
Thu Jul 30 01:24:48 EEST 2020


ffmpeg | branch: master | Gautam Ramakrishnan <gautamramk at gmail.com> | Wed Jul 29 21:37:11 2020 +0530| [8821df6fcfc0a3b75c7079617f5917c031d0a63c] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8821df6fcfc0a3b75c7079617f5917c031d0a63c
---

 libavcodec/pgxdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");



More information about the ffmpeg-cvslog mailing list