Commit 7b021627 authored by jbr's avatar jbr

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17848 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ea1110bb
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment