On 29/07/14 15:29, Vittorio Giovara wrote:
> ---
>  libavcodec/pngdec.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
> index c3c5d9b..24e7471 100644
> --- a/libavcodec/pngdec.c
> +++ b/libavcodec/pngdec.c
> @@ -500,6 +500,9 @@ static int decode_frame(AVCodecContext *avctx,
>                  } else if (s->bit_depth == 8 &&
>                             s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
>                      avctx->pix_fmt = AV_PIX_FMT_YA8;
> +                } else if (s->bit_depth == 16 &&
> +                           s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
> +                    avctx->pix_fmt = AV_PIX_FMT_YA16BE;
>                  } else {
>                      goto fail;
>                  }

Looks fine (assuming it is always BE)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to