Mercurial > libavcodec.hg
changeset 9145:de31b10455cc libavcodec
pnm: Add missing 'else'. Fixes decoding for 16-bit pgm.
author | jbr |
---|---|
date | Fri, 06 Mar 2009 00:54:49 +0000 |
parents | 53123c63f82a |
children | b980183eb831 |
files | pnm.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pnm.c Thu Mar 05 23:38:52 2009 +0000 +++ b/pnm.c Fri Mar 06 00:54:49 2009 +0000 @@ -138,7 +138,7 @@ 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 {