Commit 8fd64adf authored by Justin Ruggles's avatar Justin Ruggles

cosmetics: fix indentation after r15321

Originally committed as revision 15332 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6682ae42
...@@ -135,9 +135,9 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s){ ...@@ -135,9 +135,9 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s){
s->maxval = atoi(buf1); s->maxval = atoi(buf1);
if (s->maxval >= 256) { if (s->maxval >= 256) {
if (avctx->pix_fmt == PIX_FMT_GRAY8) { if (avctx->pix_fmt == PIX_FMT_GRAY8) {
avctx->pix_fmt = PIX_FMT_GRAY16BE; avctx->pix_fmt = PIX_FMT_GRAY16BE;
if (s->maxval != 65535) if (s->maxval != 65535)
avctx->pix_fmt = PIX_FMT_GRAY16; avctx->pix_fmt = PIX_FMT_GRAY16;
} else { } else {
av_log(avctx, AV_LOG_ERROR, "16-bit components are only supported for grayscale\n"); av_log(avctx, AV_LOG_ERROR, "16-bit components are only supported for grayscale\n");
avctx->pix_fmt = PIX_FMT_NONE; avctx->pix_fmt = PIX_FMT_NONE;
......
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