[FFmpeg-devel] [PATCH]Set bits_per_raw_sample for pnm

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Aug 6 01:23:21 CEST 2013


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> Setting bits_per_raw_sample allows to forward 
> bitdepth != 8 and != 16.

> +++ b/libavcodec/pnmdec.c
>  <at>  <at>  -47,6 +47,7
>          return ret;
>      p->pict_type = AV_PICTURE_TYPE_I;
>      p->key_frame = 1;
> +    avctx->bits_per_raw_sample = av_log2(s->maxval) + 1;

Merged by Michael.

Thank you, Carl Eugen



More information about the ffmpeg-devel mailing list