mirror of https://git.ffmpeg.org/ffmpeg.git
Set bits_per_raw_sample when decoding pnm.
This commit is contained in:
parent
f646cd4471
commit
4c15f3491f
|
@ -58,6 +58,7 @@ static int pnm_decode_frame(AVCodecContext *avctx, void *data,
|
||||||
return ret;
|
return ret;
|
||||||
p->pict_type = AV_PICTURE_TYPE_I;
|
p->pict_type = AV_PICTURE_TYPE_I;
|
||||||
p->key_frame = 1;
|
p->key_frame = 1;
|
||||||
|
avctx->bits_per_raw_sample = av_log2(s->maxval) + 1;
|
||||||
|
|
||||||
switch (avctx->pix_fmt) {
|
switch (avctx->pix_fmt) {
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue