From patchwork Fri May 4 04:33:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xiang, Haihao" X-Patchwork-Id: 8771 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:155:0:0:0:0:0 with SMTP id c82-v6csp188007jad; Thu, 3 May 2018 21:33:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqkwZ5250J8II1j6i+6HfinXgzFh3Z0o1WQiVARli9V+fuF8Cwjf6MnuJjpInm0uoJoUm8v X-Received: by 2002:adf:a48d:: with SMTP id g13-v6mr19735448wrb.7.1525408435916; Thu, 03 May 2018 21:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525408435; cv=none; d=google.com; s=arc-20160816; b=LDbiOiAqM0Xo0kkj3MfbRVF2jwzWIePbcPXakYIKYhj5TV4XInGe6VA5ilfGjNraGv LzY3GUMcyHeddBXBXcmKp6+TajA6TM7ICOTE/Tey5yeGpVdn+cBLFrf5BGZgyuBFQkYN DOiyQFYj3rk4X3O07pFqdOmgNEFF4Up0JFwR5XeEfhNk83BblfjXt3lPKPqJ5Te5MmO3 vA7EjAKIME0lxNaD19l1oEv0UKvs1QgD6X51cen8W1Kq8A7yi2PWvHZR8N946euGPpfA NhMlkGSSQl0m4fOW7jUHuPnqTLiUSnKW7Ruwvu5JpILGOGQNmPuRsMl6y/POsPKPuRqL IZTw== 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:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=7kVigoUFEXRAjGDy6vZw2h6gqtidNnJKWVSY8mkxS6M=; b=QWbkchdrXwACXDrgFYyPaX0kTQ3qk2wD0fTPHl02Tn7/MwI3WE6e404NYUzI3OnlrS s87RsJ5cTUh+l+pIoMyf+4eNNnUNLUjCZQi9AF7okNd/Pcsn/yjUhf/atvJ69Ec6W+LD UZm3whASLIKSnN8vuDLRA8u6KAkiH+ogn2uI7FU4OdZfFCmRjQ+l7u9FvU5ohVMilYVq DhZNKWxerA30GHIVVoyk0tV3LumM0FV0rUmZwvQ4R50t+PDY300uYnss0qgn8ZpfLNu7 h3P0xOqBlGQxqGr7tIYiwcHWRvOubsvbGOe63Q0DWOJ3yRpcOI6GFQ6No67FvWXctgWu H/GQ== ARC-Authentication-Results: i=1; mx.google.com; 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: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id z81si709655wmb.187.2018.05.03.21.33.54; Thu, 03 May 2018 21:33:55 -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; 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 D0EAA68A4F3; Fri, 4 May 2018 07:33:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 17BC568A10A for ; Fri, 4 May 2018 07:33:12 +0300 (EEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 21:33:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,361,1520924400"; d="scan'208";a="225707464" Received: from xhh-cfl64.sh.intel.com ([10.239.13.24]) by fmsmga006.fm.intel.com with ESMTP; 03 May 2018 21:33:43 -0700 From: Haihao Xiang To: ffmpeg-devel@ffmpeg.org Date: Fri, 4 May 2018 12:33:39 +0800 Message-Id: <20180504043339.3823-1-haihao.xiang@intel.com> X-Mailer: git-send-email 2.14.1 Subject: [FFmpeg-devel] [PATCH] cbs_h264: Need [] in the name when subscript is required X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Haihao Xiang , Mark Thompson MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Otherwise it will hit an assert in the function ff_cbs_trace_syntax_element() in cbs.c, line 400. Signed-off-by: Haihao Xiang --- libavcodec/cbs_h264_syntax_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cbs_h264_syntax_template.c b/libavcodec/cbs_h264_syntax_template.c index c3327f6e90..3ec4299915 100644 --- a/libavcodec/cbs_h264_syntax_template.c +++ b/libavcodec/cbs_h264_syntax_template.c @@ -763,7 +763,7 @@ static int FUNC(sei_payload)(CodedBitstreamContext *ctx, RWContext *rw, { allocate(current->payload.other.data, current->payload_size); for (i = 0; i < current->payload_size; i++) - xu(8, payload_byte, current->payload.other.data[i], 0, 255, 1, i); + xu(8, payload_byte[i], current->payload.other.data[i], 0, 255, 1, i); } }