1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

Support 48bpp pam decoding.

Fixes ticket #882.
This commit is contained in:
ami_stuff 2012-01-05 20:58:24 +01:00 committed by Carl Eugen Hoyos
parent 871e2f4fac
commit a44b63f6c8

View File

@ -122,9 +122,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s)
if (maxval < 256) {
avctx->pix_fmt = PIX_FMT_RGB24;
} else {
av_log(avctx, AV_LOG_ERROR, "16-bit components are only supported for grayscale\n");
avctx->pix_fmt = PIX_FMT_NONE;
return -1;
avctx->pix_fmt = PIX_FMT_RGB48BE;
}
} else if (depth == 4) {
avctx->pix_fmt = PIX_FMT_RGB32;