From patchwork Wed Nov 27 07:48:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 16441 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 F108344ACB4 for ; Wed, 27 Nov 2019 09:49:34 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DCCFF68B0BD; Wed, 27 Nov 2019 09:49:34 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1107268B0B6 for ; Wed, 27 Nov 2019 09:49:27 +0200 (EET) Received: by mail-wm1-f67.google.com with SMTP id l1so5946075wme.2 for ; Tue, 26 Nov 2019 23:49:27 -0800 (PST) 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=MwHMRg08yEXj7gXPrhtpB+8yCyOx+43h1BJH04XILbg=; b=sQACX6XfMWtBI6hX7k+8M56mjImlHxCRoL0D7tO6zTgzJcBJFIRNKpF5auX7PGVEqN eMEXhBHmrN7ipQKqyBXDiKTJ3jTrnG7zwwOP+gs7omkIcPGkm4EIUIEfLi/XFDpuZP1Y z4sY0QsS3NsJVzga4DGHexoFDKv02xdpjSh7duPPV/22PTQEqHenuNSUxAp6NWT3RH0+ q3vh1JAVKrrbYlOEqypDs5cHrOvjjGJg41dw6t6cW4Wxl1QVlQgIVLYf6DFp126era4l ANT/j+VxeZ+1hhSEtxQdyG0H2EzWObTmmInoL/08fI/UkkYCxF1e/Q9sONpO7h59ec7e 4DeA== 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=MwHMRg08yEXj7gXPrhtpB+8yCyOx+43h1BJH04XILbg=; b=ppSdU/ZpY571KeDmXN03kMBp0Xv47z3sA1C8m5VnujLpraCH4V0hJ4ffT7/N1UuZnB W1BJp2Q1jDXJsgxBWu5oj+ZZN92AdDdYcPEu27gKxk2QDN6sKijuE39AlD33cvEoPoSv zefA0AZh/W304Y8STOZdIj9qZulwe0bGSSca7HxkOeyJSEsuceZ2otpv3OkTiH8K1HaM LpN0OsV+K1U3SXOtMWAqqiHGEmJ7NFGz/6pjUHUMt6eAVvbpjb+LsWPkmMkKp11d6H3i LXuLZUsDZpX7skrLiTTncMJg0v95f5lRjrwFP1QD20sDNpOUyRrfiQxrJpoHrnz2IQh7 W91Q== X-Gm-Message-State: APjAAAV1BE4sc+oNulxyOvhUNoCdXPKA2bdAQuEugsSDlULbu/OcuBvq ijZpxqPjAEk791sQVXM3CleTzxim X-Google-Smtp-Source: APXvYqyudBVVKFA9f/Nks0s3DAQIGucoRQj2+5ml0rtz+EVxsinhxqoXvDauVUTjklQ9JRtLZZHabA== X-Received: by 2002:a05:600c:299:: with SMTP id 25mr3017776wmk.50.1574840966428; Tue, 26 Nov 2019 23:49:26 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc08e23.dynamic.kabel-deutschland.de. [188.192.142.35]) by smtp.gmail.com with ESMTPSA id n16sm4230831wro.88.2019.11.26.23.49.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 23:49:25 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Wed, 27 Nov 2019 08:48:56 +0100 Message-Id: <20191127074858.32066-3-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191106024922.19228-1-andreas.rheinhardt@gmail.com> References: <20191106024922.19228-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 27/29] avformat/flacenc: Add const to ff_flac_write_header() parameter 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" The extradata is not changed at all. Signed-off-by: Andreas Rheinhardt --- libavformat/flacenc.h | 2 +- libavformat/flacenc_header.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/flacenc.h b/libavformat/flacenc.h index d5d53a5dcb..b308d0d021 100644 --- a/libavformat/flacenc.h +++ b/libavformat/flacenc.h @@ -26,7 +26,7 @@ #include "libavcodec/bytestream.h" #include "avformat.h" -int ff_flac_write_header(AVIOContext *pb, uint8_t *extradata, +int ff_flac_write_header(AVIOContext *pb, const uint8_t *extradata, int extradata_size, int last_block); int ff_flac_is_native_layout(uint64_t channel_layout); diff --git a/libavformat/flacenc_header.c b/libavformat/flacenc_header.c index 61833cc8b9..aba22a59d8 100644 --- a/libavformat/flacenc_header.c +++ b/libavformat/flacenc_header.c @@ -26,7 +26,7 @@ #include "avformat.h" #include "flacenc.h" -int ff_flac_write_header(AVIOContext *pb, uint8_t *extradata, +int ff_flac_write_header(AVIOContext *pb, const uint8_t *extradata, int extradata_size, int last_block) { uint8_t header[8] = {