diff options
Diffstat (limited to 'libavcodec/pnm.c')
-rw-r--r-- | libavcodec/pnm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pnm.c b/libavcodec/pnm.c index 09530f8131..680034a3d5 100644 --- a/libavcodec/pnm.c +++ b/libavcodec/pnm.c @@ -109,6 +109,7 @@ int ff_pnm_decode_header(AVCodecContext *avctx, PNMContext * const s) avctx->width = w; avctx->height = h; + s->maxval = maxval; if (depth == 1) { if (maxval == 1) avctx->pix_fmt = PIX_FMT_MONOWHITE; |