[FFmpeg-cvslog] png: Set the color range as full range

wm4 git at videolan.org
Mon Jun 1 13:28:42 CEST 2015


ffmpeg | branch: release/2.2 | wm4 <nfxjfg at googlemail.com> | Fri May  8 17:01:50 2015 +0200| [f29cf578923d2d4d2cf891dfc0c7ac45c641a5b7] | committer: Reinhard Tartler

png: Set the color range as full range

The format uses full range for the gray formats.

CC: libav-stable at libav.org
(cherry picked from commit 0f50c53cfb959162f2bccc1a2c2e066d35723595)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f29cf578923d2d4d2cf891dfc0c7ac45c641a5b7
---

 libavcodec/pngdec.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index e646296..eac4bd7 100644
--- a/libavcodec/pngdec.c
+++ b/libavcodec/pngdec.c
@@ -629,6 +629,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);



More information about the ffmpeg-cvslog mailing list