Message ID | 20170819033226.149634-1-jzern@google.com |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.46.211 with SMTP id u202csp1450489vsu; Fri, 18 Aug 2017 20:39:06 -0700 (PDT) X-Received: by 10.28.156.10 with SMTP id f10mr2698422wme.35.1503113946164; Fri, 18 Aug 2017 20:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503113946; cv=none; d=google.com; s=arc-20160816; b=yM+NJ83bpQe53MY4eYDkwNXjq5uQy3/vXM7H8Ysd99KOVTpR0IPUbPGD6eVHVBQ48/ aC+euIht5aqgXyYWya94iLk+cmxAa6FCmWQPDj6WaDILZEtI3D8H62d3yDhfN/Df8mBn 6FUrWnsa1zSIubIaMSVTuSyc94tvyWR+Wkfx+JJkZ56xM5WcCGPXjjejYUGnZq/CuhMT x5ycP+CgrdrM3kcFNQbqQi6ZMRjSIykPktjHvM9WW3ZiOzbSUosSIMe+cmOVmX9/K9l8 FetabXWaWLS7x9mslUjirQXFc2S/0R1wi8Iu/zmCWJ3066ixWd06PimdsrM3ReU5i6qD KEFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=EKADsFB9gREm+vYzqsaw19m1AiWqoooeg7kFyOxDkz8=; b=Z4OmoER5MLR+afYxWQFdllQuEULKqDCE4+XILN3QmJXUapizLov2X5obIQloIY6Vos jsgun7dngpNDw5vcUYq4t4hDjbyvaa1b92pnjS6q4Y+wNShEh5u7PsHU+UnHK0rNWPkG LBg9mFLr2UjLUzyEOctFg5FMMV1EkHjSywT60v5Vx3ZETS/Eeiy39wwG1rteVqLcWdOf 5uGjdoNQ3VfZf6T4Kp+KpoGFG0SQr0IQUDpv/Eu77K0uOJkc4EBacs+fg1Xyat7OirnQ szUeilRn98SVP5/0XFaJgheRACIzPF0aE0dOMYrjVrLG9XIdTOVjMX57nQDKYDf36Vwt AuHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@google.com header.s=20161025 header.b=f/rBWqGq; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id x67si2234360wmg.92.2017.08.18.20.39.05; Fri, 18 Aug 2017 20:39:06 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@google.com header.s=20161025 header.b=f/rBWqGq; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4AC9968975F; Sat, 19 Aug 2017 06:38:57 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf0-f175.google.com (mail-pf0-f175.google.com [209.85.192.175]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 24854680439 for <ffmpeg-devel@ffmpeg.org>; Sat, 19 Aug 2017 06:38:50 +0300 (EEST) Received: by mail-pf0-f175.google.com with SMTP id o86so10001988pfj.1 for <ffmpeg-devel@ffmpeg.org>; Fri, 18 Aug 2017 20:38:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:subject:date:message-id; bh=TO2KKHSzZV/uyRanx45IXiZcVxX3PhSLdnzYrlEZKFE=; b=f/rBWqGq1Zb2fHWx1ZH16Rtz//NINnJF/GDUk2M6U5Md31n6ihARuMGtSvfw2aPIeq Qmspeg6t+M6mjqd8Q6jCioFqGYRBObvV7sKpMoigmt75ZRnpv5uj5Thu8pwD71tJyB+q 7oLFhD1SoKQSBh5Eqm7OLkY9bgdTUtzvLQpSo/1pC9+wdCCdkN+CnodiqJQ2k0j4PZvs H/21NSvbJVThoiQJVzY8xGJmc92hAaNbrEyCHZ4KzyR25pq+QwixrIdj7wUbN34bdTJZ JqqD5kBGoO+82wRCRjyF8f4fgRaSZHjKFWnpAch90jVGGVKisG0RdwlOvL7oOm8Q/PyC yOcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=TO2KKHSzZV/uyRanx45IXiZcVxX3PhSLdnzYrlEZKFE=; b=hqyxuQhw4aUswW2/hfko0Scehq949aMU+4qn8jCHIRTwshQlXGRUxdYV9ynZw7k7Z+ djTXQIyTnDrFlli+nrOSSgHec04xgtj1j3lGe2HfxmnJqGXPTk6yE+KZhty29uyF9kAa 6NVU0GZ8Xmf0Nv76RbG3996hwM28sPyudfdkGKL1NnhdgidqUBv8pcF9yOwfFfYgS0MA LaOt2lKT37gsnRyeuFKCaRz4vZ+TvcINP3I+X3D28lckfeVfF5w+X8+7D3HXRVDuCCiG /l+SA0oH03G/TJzOSOMh2jm0KIO19ryfwnydD/I76O9CGqzgEk0dBFieEuG0GD6aQpCm 5o+w== X-Gm-Message-State: AHYfb5hpN1qpyGI2PkfdhwVI8QJNMQ1jDZ4PN6fL7QPwm8iD/0IdtGma I81u+oUQ9vwS7+mroU03UQ== X-Received: by 10.84.216.20 with SMTP id m20mr7722516pli.206.1503113547534; Fri, 18 Aug 2017 20:32:27 -0700 (PDT) Received: from jzern.mtv.corp.google.com ([172.18.84.226]) by smtp.gmail.com with ESMTPSA id a86sm14324253pfe.181.2017.08.18.20.32.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Aug 2017 20:32:26 -0700 (PDT) Received: by jzern.mtv.corp.google.com (Postfix, from userid 105886) id 6D80480825; Fri, 18 Aug 2017 20:32:26 -0700 (PDT) From: James Zern <jzern-at-google.com@ffmpeg.org> To: ffmpeg-devel@ffmpeg.org Date: Fri, 18 Aug 2017 20:32:26 -0700 Message-Id: <20170819033226.149634-1-jzern@google.com> X-Mailer: git-send-email 2.14.1.480.gb18f417b89-goog Subject: [FFmpeg-devel] [PATCH] vp9: set color range to MPEG for intraonly profile 0 X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <http://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <http://ffmpeg.org/pipermail/ffmpeg-devel/> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <http://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> |
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 7d8aced8c8..94430db9a3 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -459,7 +459,7 @@ static int decode_frame_header(AVCodecContext *avctx, s->bytesperpixel = 1; s->pix_fmt = AV_PIX_FMT_YUV420P; avctx->colorspace = AVCOL_SPC_BT470BG; - avctx->color_range = AVCOL_RANGE_JPEG; + avctx->color_range = AVCOL_RANGE_MPEG; } s->s.h.refreshrefmask = get_bits(&s->gb, 8); w = get_bits(&s->gb, 16) + 1;
this is undocumented in the vp9 bitstream and decoding specification doc, but matches libvpx Signed-off-by: James Zern <jzern@google.com> --- libavcodec/vp9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)