提交 8821df6f 编写于 作者: G Gautam Ramakrishnan 提交者: 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: NMichael Niedermayer <michael@niedermayer.cc>
上级 9d302efd
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册