mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
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>
This commit is contained in:
parent
9d302efdf2
commit
8821df6fcf
@ -137,7 +137,7 @@ static int pgx_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
avctx->pix_fmt = AV_PIX_FMT_GRAY8;
|
avctx->pix_fmt = AV_PIX_FMT_GRAY8;
|
||||||
bpp = 8;
|
bpp = 8;
|
||||||
} else if (depth <= 16) {
|
} else if (depth <= 16) {
|
||||||
avctx->pix_fmt = AV_PIX_FMT_GRAY16BE;
|
avctx->pix_fmt = AV_PIX_FMT_GRAY16;
|
||||||
bpp = 16;
|
bpp = 16;
|
||||||
} else {
|
} else {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Maximum depth of 16 bits supported.\n");
|
av_log(avctx, AV_LOG_ERROR, "Maximum depth of 16 bits supported.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user