Ticket #881: pam16_2.diff
| File pam16_2.diff, 613 bytes (added by , 15 years ago) |
|---|
-
libavcodec/pnm.c
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c index 680034a..9e1b117 100644
a b int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) 113 113 if (depth == 1) { 114 114 if (maxval == 1) 115 115 avctx->pix_fmt = PIX_FMT_MONOWHITE; 116 else 116 else if (maxval == 255) 117 117 avctx->pix_fmt = PIX_FMT_GRAY8; 118 else 119 avctx->pix_fmt = PIX_FMT_GRAY16BE; 118 120 } else if (depth == 3) { 119 121 if (maxval < 256) { 120 122 avctx->pix_fmt = PIX_FMT_RGB24;
