From patchwork Fri Sep 27 11:27:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 2954111 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 242E99F289 for ; Fri, 27 Sep 2013 11:27:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47E092028D for ; Fri, 27 Sep 2013 11:27:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 1B66E20221 for ; Fri, 27 Sep 2013 11:27:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 10299E6CFF for ; Fri, 27 Sep 2013 04:27:26 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by gabe.freedesktop.org (Postfix) with ESMTP id D5495E6206 for ; Fri, 27 Sep 2013 04:27:04 -0700 (PDT) Received: by mail-wi0-f180.google.com with SMTP id hj3so654763wib.13 for ; Fri, 27 Sep 2013 04:27:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=4sPPJgn0Ix1DRF6Wn7pL8Dx8Naq/4Xxdq8sdezxl16Y=; b=OCwofBnccheoNCzWoxwSmcm7HZAEOyO0oxnM0NacVO7W498uYKaFO0VCy2TxcnvQkJ n7MeACjXc241DvT/O47y25zCgWwV14kO9CQC+IPY3swjS5UFBkOiia/r7LGEQ4arwlI0 xmmVkyMfTN3tcK8WltBafSpGAcEFrWJ8Jdkvd/NRrlRRam7vq9vsAPjB22rtGHJIpzfS fvrVzChgfGRSTqMEtD9YZf4O6vsd8mYcHgqxP2ak7isk1WolDIpOpuJkUOcbq1zNqfRo xw+s+ifSiZYaVhB19dR9PQLs1W6EIVbP2tSgwbSGqvItfYQlJ55yLoQ4rTCdNnWV8QMW E1xg== X-Gm-Message-State: ALoCoQmWgbse5xMCNpU3arTEvPePuPkGEgelcM9hDslMzs2hXA4pnx6oLbOs6fDHytZwBDM5kjFc X-Received: by 10.180.39.134 with SMTP id p6mr2211607wik.9.1380281223991; Fri, 27 Sep 2013 04:27:03 -0700 (PDT) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id gp9sm37633435wib.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 27 Sep 2013 04:27:03 -0700 (PDT) From: Thomas Wood To: dri-devel@lists.freedesktop.org Subject: [PATCH edid-decode 2/3] Include the last VIC in the CEA video block Date: Fri, 27 Sep 2013 12:27:00 +0100 Message-Id: <1380281221-2116-2-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1380281221-2116-1-git-send-email-thomas.wood@intel.com> References: <1380281221-2116-1-git-send-email-thomas.wood@intel.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Thomas Wood --- edid-decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edid-decode.c b/edid-decode.c index 3830e0c..b710bb5 100644 --- a/edid-decode.c +++ b/edid-decode.c @@ -711,7 +711,7 @@ cea_video_block(unsigned char *x) int i; int length = x[0] & 0x1f; - for (i = 1; i < length; i++) { + for (i = 1; i <= length; i++) { unsigned char vic = x[i] & 0x7f; unsigned char native = x[i] & 0x80; const char *mode;