Browse Source

Support 48bpp pam decoding.

Fixes ticket #882.
tags/n0.10
ami_stuff Carl Eugen Hoyos 14 years ago
parent
commit
a44b63f6c8
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libavcodec/pnm.c

+ 1
- 3
libavcodec/pnm.c 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;


Loading…
Cancel
Save