[FFmpeg-trac] #769(swscale:open): png gray8 alpha decodes incorrectly
FFmpeg
trac at avcodec.org
Mon Jan 9 17:44:10 CET 2012
#769: png gray8 alpha decodes incorrectly
--------------------------------------+-----------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: open
Priority: normal | Component: swscale
Version: git-master | Resolution:
Keywords: gray8a alpha | Blocked By:
Blocking: | Reproduced by developer: 1
Analyzed by developer: 0 |
--------------------------------------+-----------------------------------
Comment (by ami_stuff):
attached pngs works with this:
{{{
} else if (s->bit_depth == 1) {
avctx->pix_fmt = PIX_FMT_MONOBLACK;
} else if (s->bit_depth == 8 &&
s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
- avctx->pix_fmt = PIX_FMT_GRAY8A;
+ avctx->pix_fmt = PIX_FMT_GRAY16BE;
} else {
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/769#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list