From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id C732E43A5C for ; Sat, 6 Aug 2022 11:32:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E88FF68B6EF; Sat, 6 Aug 2022 14:32:32 +0300 (EEST) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D47E068B685 for ; Sat, 6 Aug 2022 14:32:26 +0300 (EEST) Received: by mail-qk1-f170.google.com with SMTP id i24so3507865qkg.13 for ; Sat, 06 Aug 2022 04:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rcombs.me; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc; bh=xcm31F5PLBf5oQ6iFO0CZhKHqc8w/++TlGBbbgC7l6c=; b=H2JjMyCOdUq1As8CslIuyucVC0m1ualOppln4Dj8FNlxZUFr6Kg1a0qhEkggWPO0wq yzxbzK33PlnprYODtrbsmmqRz6xsflR/P0T1cjeiQ4AM3uG/I6zlL3SX+q7kY0EqDfIr SgRcEyjpYxXjm/pFmHOUACGdt6vj1Gp/Tf96Lwb3vYWQiEVcNQeBxzZ+ZoVnXb2FGzzX qr09b0dwuzfSNTFAhZEQ/VtqaW0+N83I4DS92HGLrrZZQzzgZ2HHWgNK3EQGEUav1Q0Z gQWa1xuP3BaOwp81PNdWlFrsx5gIep5kxP1Z0eIlvVafVMlNjx7ar26hD7oFWQoA/RwL 4rAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=xcm31F5PLBf5oQ6iFO0CZhKHqc8w/++TlGBbbgC7l6c=; b=ycELrMEBVVM+Fx017vgKSDeaqe4IJ0nphecfiO5d38ZE41UVrzDvVH5O3czTRfTpDj npMEagKkqJsVXFakdri4ujCcD1e2hCb2ryzT50u+Ji7bOkJ1MR3ldLcPmq70DjsB9IMX rSaxzwjrbYutGMiygCSeILtkbUVG7xm0d2xASPbmxIy03TQhCXpSEKK4qkaT87ldd7lh Nctnbnmxuu6MwvDZAeT9cGJg9DU7R+Qzs8TvSM/5pogmUwbvb3PTqYO9XLrUQYemSfG/ IguOh1qfFhUWz/s1EA17+hGBkXaJI7HGGvouugM6jSd6MIHThajg6Eo0IZmUBrCyFsGp csTw== X-Gm-Message-State: ACgBeo1MR665WjiNV5VmPLPgVNLueRmXeaOLT+RuHqCtAik+qzRVRxTh 0QR5ItLvyrOpAkBModWvptpYnKr3US/F X-Google-Smtp-Source: AA6agR7yaWGjdNyJzLOoaB5BFtOgp5psEFZfyhPVr32ZR3o9K4x8rG9BjQ/3qZxUhU3cU8txxPFCHA== X-Received: by 2002:a37:42d3:0:b0:69c:830d:6e51 with SMTP id p202-20020a3742d3000000b0069c830d6e51mr6490059qka.302.1659733250510; Fri, 05 Aug 2022 14:00:50 -0700 (PDT) Received: from rcombs-mbp.localdomain ([2601:243:2000:5ac:5059:388d:ef36:5554]) by smtp.gmail.com with ESMTPSA id e11-20020ac8010b000000b0031f27b82268sm3300678qtg.71.2022.08.05.14.00.49 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 05 Aug 2022 14:00:50 -0700 (PDT) From: rcombs To: ffmpeg-devel@ffmpeg.org Date: Fri, 5 Aug 2022 16:00:39 -0500 Message-Id: <20220805210039.4158-1-rcombs@rcombs.me> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lswr: take const AVChannelLayout* in swr_alloc_set_opts2() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: This is fully backwards-compatible in both ABI and API, so it's only a minor bump. --- libswresample/swresample.c | 4 ++-- libswresample/swresample.h | 4 ++-- libswresample/version.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 9b77ef65bf..123ac65693 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -83,8 +83,8 @@ FF_ENABLE_DEPRECATION_WARNINGS #endif int swr_alloc_set_opts2(struct SwrContext **ps, - AVChannelLayout *out_ch_layout, enum AVSampleFormat out_sample_fmt, int out_sample_rate, - AVChannelLayout *in_ch_layout, enum AVSampleFormat in_sample_fmt, int in_sample_rate, + const AVChannelLayout *out_ch_layout, enum AVSampleFormat out_sample_fmt, int out_sample_rate, + const AVChannelLayout *in_ch_layout, enum AVSampleFormat in_sample_fmt, int in_sample_rate, int log_offset, void *log_ctx) { struct SwrContext *s = *ps; int ret; diff --git a/libswresample/swresample.h b/libswresample/swresample.h index 26d42fab8d..980be65783 100644 --- a/libswresample/swresample.h +++ b/libswresample/swresample.h @@ -286,8 +286,8 @@ struct SwrContext *swr_alloc_set_opts(struct SwrContext *s, * On error, the Swr context is freed and *ps set to NULL. */ int swr_alloc_set_opts2(struct SwrContext **ps, - AVChannelLayout *out_ch_layout, enum AVSampleFormat out_sample_fmt, int out_sample_rate, - AVChannelLayout *in_ch_layout, enum AVSampleFormat in_sample_fmt, int in_sample_rate, + const AVChannelLayout *out_ch_layout, enum AVSampleFormat out_sample_fmt, int out_sample_rate, + const AVChannelLayout *in_ch_layout, enum AVSampleFormat in_sample_fmt, int in_sample_rate, int log_offset, void *log_ctx); /** * @} diff --git a/libswresample/version.h b/libswresample/version.h index 66bac2fa9b..4b9952d914 100644 --- a/libswresample/version.h +++ b/libswresample/version.h @@ -30,7 +30,7 @@ #include "version_major.h" -#define LIBSWRESAMPLE_VERSION_MINOR 8 +#define LIBSWRESAMPLE_VERSION_MINOR 9 #define LIBSWRESAMPLE_VERSION_MICRO 100 #define LIBSWRESAMPLE_VERSION_INT AV_VERSION_INT(LIBSWRESAMPLE_VERSION_MAJOR, \ -- 2.37.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".