提交 5a92cc66 编写于 作者: J Justin Ruggles

pnm: Add missing 'else'. Fixes decoding for 16-bit pgm.

Originally committed as revision 17848 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 bc3057f4
......@@ -138,7 +138,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s){
avctx->pix_fmt = PIX_FMT_GRAY16BE;
if (s->maxval != 65535)
avctx->pix_fmt = PIX_FMT_GRAY16;
} if (avctx->pix_fmt == PIX_FMT_RGB24) {
} else if (avctx->pix_fmt == PIX_FMT_RGB24) {
if (s->maxval > 255)
avctx->pix_fmt = PIX_FMT_RGB48BE;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册