projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a55a706
)
png: Set the color range as full range
author
wm4
<nfxjfg@googlemail.com>
Fri, 8 May 2015 15:01:50 +0000
(17:01 +0200)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Tue, 19 May 2015 11:14:50 +0000
(12:14 +0100)
The format uses full range for the gray formats.
CC: libav-stable@libav.org
libavcodec/pngdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/pngdec.c
b/libavcodec/pngdec.c
index
fa7f7cc
..
2790bf4
100644
(file)
--- a/
libavcodec/pngdec.c
+++ b/
libavcodec/pngdec.c
@@
-645,6
+645,8
@@
static av_cold int png_dec_init(AVCodecContext *avctx)
{
PNGDecContext *s = avctx->priv_data;
+ avctx->color_range = AVCOL_RANGE_JPEG;
+
s->prev = av_frame_alloc();
if (!s->prev)
return AVERROR(ENOMEM);