Commit 4c15f349 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Set bits_per_raw_sample when decoding pnm.

parent f646cd44
......@@ -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:
......
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