Ticket #883: pam64_2.diff
| File pam64_2.diff, 634 bytes (added by ami_stuff, 17 months ago) |
|---|
-
libavcodec/pnm.c
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c index 791829b..ac451ca 100644
a b int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) 125 125 avctx->pix_fmt = PIX_FMT_RGB48BE; 126 126 } 127 127 } else if (depth == 4) { 128 avctx->pix_fmt = PIX_FMT_RGB32; 128 if (maxval < 256) { 129 avctx->pix_fmt = PIX_FMT_RGB32; 130 } else { 131 av_log(avctx, AV_LOG_ERROR, "Unsupported bit depth\n"); 132 return -1; 133 } 129 134 } else { 130 135 return -1; 131 136 }
