]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/pngdec.c
h263dec: call get_format after setting resolution and profile
[ffmpeg] / libavcodec / pngdec.c
index 0c4c91a6122424f23d4f09441b114391421b8bc6..fa7f7cc0a62a01028ee6ca8a6d816c850fbad89c 100644 (file)
@@ -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;
                 }