From 8fd64adf0816669d5ba0ebdd198893c3b729614d Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Sun, 14 Sep 2008 22:27:47 +0000 Subject: [PATCH] cosmetics: fix indentation after r15321 Originally committed as revision 15332 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/pnm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c index be831dd..a3b4919 100644 --- a/libavcodec/pnm.c +++ b/libavcodec/pnm.c @@ -135,9 +135,9 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s){ s->maxval = atoi(buf1); if (s->maxval >= 256) { if (avctx->pix_fmt == PIX_FMT_GRAY8) { - avctx->pix_fmt = PIX_FMT_GRAY16BE; - if (s->maxval != 65535) - avctx->pix_fmt = PIX_FMT_GRAY16; + avctx->pix_fmt = PIX_FMT_GRAY16BE; + if (s->maxval != 65535) + avctx->pix_fmt = PIX_FMT_GRAY16; } else { av_log(avctx, AV_LOG_ERROR, "16-bit components are only supported for grayscale\n"); avctx->pix_fmt = PIX_FMT_NONE; -- 2.7.4