]> git.sesse.net Git - ffmpeg/commit
pngdec: set correct range
authorwm4 <nfxjfg@googlemail.com>
Thu, 7 May 2015 21:37:18 +0000 (23:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 7 May 2015 22:44:06 +0000 (00:44 +0200)
commit72e7553125e61847d9cab77fb7de62440dca746b
treebe0b1f8a2473a7bb9f68936566fd4111e2589374
parent3b123353950934e12d04c5c98c98262a196dd651
pngdec: set correct range

AV_PIX_FMT_GRAY8/16 are considered YUV formats, and the color_range is
not set - so the API user will have to assume limitted range. (Unless
the API user adds a special-case for the PNG decoder.)

Just export the correct range - full range.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/pngdec.c
tests/ref/fate/png-ya16
tests/ref/fate/png-ya8