OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
254f3da
)
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
Luca Barbato
<lu_zero@gentoo.org>
Sat, 9 May 2015 13:55:50 +0000
(15:55 +0200)
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
c8bfa36
..
823d77f
100644
(file)
--- a/
libavcodec/pngdec.c
+++ b/
libavcodec/pngdec.c
@@
-646,6
+646,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);