On 1/25/16, Kieran Kunhya <kie...@kunhya.com> wrote:
> Decodes YUV 4:2:2 10-bit and RGB 12-bit files.
> Older files with more subbands, skips, Bayer, alpha not supported.
> Alpha requires addition of GBRAP12 pixel format.
> ---
>  libavcodec/Makefile     |   1 +
>  libavcodec/allcodecs.c  |   1 +
>  libavcodec/avcodec.h    |   1 +
>  libavcodec/cfhd.c       | 744
> ++++++++++++++++++++++++++++++++++++++++++++++++
>  libavcodec/cfhd.h       | 107 +++++++
>  libavcodec/cfhddata.c   | 327 +++++++++++++++++++++
>  libavcodec/codec_desc.c |   7 +
>  libavformat/riff.c      |   1 +
>  8 files changed, 1189 insertions(+)
>  create mode 100644 libavcodec/cfhd.c
>  create mode 100644 libavcodec/cfhd.h
>  create mode 100644 libavcodec/cfhddata.c
>

[...]

> +        s->plane[i].idwt_buf = av_malloc(height * stride *
> sizeof(*s->plane[i].idwt_buf));
> +        s->plane[i].idwt_tmp = av_malloc(height * stride *
> sizeof(*s->plane[i].idwt_tmp));

av_malloc_array()

rest LGTM
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to