diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-08-06 00:26:21 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-08-06 00:26:21 +0200 |
commit | 4c15f3491f1991554ad497788dfb6ad02b552134 (patch) | |
tree | 58de8a40e7c2f168f80bff3652ab7dbd426d3a49 | |
parent | f646cd44716bf0cba54a1f279dd3d9dd47b33322 (diff) | |
download | ffmpeg-4c15f3491f1991554ad497788dfb6ad02b552134.tar.gz |
Set bits_per_raw_sample when decoding pnm.
-rw-r--r-- | libavcodec/pnmdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/pnmdec.c b/libavcodec/pnmdec.c index df9b5ee2e4..c7a7a44680 100644 --- a/libavcodec/pnmdec.c +++ b/libavcodec/pnmdec.c @@ -58,6 +58,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data, return ret; p->pict_type = AV_PICTURE_TYPE_I; p->key_frame = 1; + avctx->bits_per_raw_sample = av_log2(s->maxval) + 1; switch (avctx->pix_fmt) { default: |