From patchwork Thu Jul 9 10:35:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 20910 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 9B4D644B499 for ; Thu, 9 Jul 2020 13:37:20 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7FB4B68B5D7; Thu, 9 Jul 2020 13:37:20 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A979968B5B2 for ; Thu, 9 Jul 2020 13:37:12 +0300 (EEST) Received: by mail-wr1-f66.google.com with SMTP id a6so1807187wrm.4 for ; Thu, 09 Jul 2020 03:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rn5DYxpw9/O4OqJMyJpOhBJ670gBCiqb4/nq/ClM+dU=; b=edo/JFDi2zcQSAs275hTMJ+SYRVAZA8w7df7C69ual4BvdlNKQk8LuXmGlAEdUWo8S fVcPsPV1HbOjoCyejfOc+1fdEJeX64V2xpkBPVPzhovH4PGT5/cYsML6FpcERpv2gU+O QPKig2I6FPT+i28Kv9FlsJWLz/+f1q4lZxQbt5dMoiuFRr1VObgUeS/j2dR7ZckgCFOn 7JsT+fGtp41wwWHqIwN4glKch+hBgEczZ4enVgzwbRrOC5byFkdGBYFUuGoIU15grmJL InyKMYwMx7uCfttCo2n5q730YSZejT8CDpTUlmvrpioWJXH4gENZlFNcSVpotVek2ZHA CuXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rn5DYxpw9/O4OqJMyJpOhBJ670gBCiqb4/nq/ClM+dU=; b=W++eyvG2Ekod5E239AMuKHet8qBByAjHrBGVGmmI84vpdynclhzL4EcjgzZSq5ChNz WTuC3GFH7RtDb/12vVdcMlHC62Z8ANDMFLBK43sVl+D1HggYHnOQbw69fotoINnWvv0M V7f9jV+RNojEXY20ycVYisX9mJ//BM9e0XN3CATyt6KIPRaqNZwci34b53/mwxM6GuYD toLKe+evP8Cbpw/sAStUYJrmqkU+Lc8KRBvYp8i22Qw9jXLFS6xkz3JU1cJXN+2co6vx ZtHpJowTUCXz1iDR1xQJzlqjATCNRybJ/PwrE13obJOGPwrv1+210I+lyGs4K3LdCxOG ybFg== X-Gm-Message-State: AOAM531G/eXE5vdGBxh6kdK/M5ERNfzdM/NR3jP+NO7zKujLhh/rEfLt cC5m/adu9/KXKJqf7OLNpTJiYAXI X-Google-Smtp-Source: ABdhPJzBhjn0N9QUlG4sp2voqMOLMwG58WoIOQAV54KocB7qEC9FO9bCPysPBjStOrA0FkTsh5kU+g== X-Received: by 2002:adf:f10a:: with SMTP id r10mr31720124wro.406.1594291031863; Thu, 09 Jul 2020 03:37:11 -0700 (PDT) Received: from sblaptop.fritz.box (ipbcc10296.dynamic.kabel-deutschland.de. [188.193.2.150]) by smtp.gmail.com with ESMTPSA id c15sm4155623wme.23.2020.07.09.03.37.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 03:37:11 -0700 (PDT) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 9 Jul 2020 12:35:41 +0200 Message-Id: <20200709103542.19909-6-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200709103542.19909-1-andreas.rheinhardt@gmail.com> References: <20200709103542.19909-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 6/7] avformat/sdp: Store strings instead of pointers to strings in array 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- libavformat/sdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 3acbf5d197..aa0569cd0d 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -231,7 +231,7 @@ static char *extradata2psets_hevc(AVCodecParameters *par) int extradata_size = par->extradata_size; AVIOContext *pb = NULL; int ps_pos[3] = { 0 }; - static const char * const ps_names[3] = { "vps", "sps", "pps" }; + static const char ps_names[3][4] = { "vps", "sps", "pps" }; int num_arrays, num_nalus; int pos, i, j;