Browse Source

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

Originally committed as revision 17848 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Justin Ruggles 16 years ago
parent
commit
5a92cc663c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/pnm.c

+ 1
- 1
libavcodec/pnm.c View File

@@ -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 {


Loading…
Cancel
Save