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 2EFD84C7FB for ; Tue, 6 Aug 2024 17:05:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6A1F668DA40; Tue, 6 Aug 2024 20:05:45 +0300 (EEST) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C19EA68D95B for ; Tue, 6 Aug 2024 20:05:39 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 01E70FF802 for ; Tue, 6 Aug 2024 17:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1722963939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=3zQKkFnU8S/k6LvQaeEyFWhyovR51yRx3GaP86wHQPI=; b=cyMxzkOe7oGi6WrNeJMxH+2NkSLs917fTExdUQ07DrNzSHHY6mvobBFVQw8IJzzO2g33kX O9sU0ZPpHTmbMw/NNcYrYdqoaU3gfhvN7I5XROQT2iZGMYYkVvAWfqHPkOWnn5Vde7f31U 0DKP0Ex4HJsL2jetlKa/oH/ObcUdeHc/O5znqMT8kvkTM+VKhRW180DEa3l7ahcIFk4Tlc pNTWKvB3ZkZMPp0ybABA9letSZDaR6ymZOPTzmq9cJ+GvhymZ+oKZZF8WjQtdJQuE5o0se yhdvHy6sGJbe2D+6g/cD9pnwIiV4R/7NCKRemRKh7LOWtqkINGSP6tIEaYCfvQ== Date: Tue, 6 Aug 2024 19:05:38 +0200 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240806170538.GI4991@pb2> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] CBS 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: multipart/mixed; boundary="===============0916891995800298519==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============0916891995800298519== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nwFUwwwa9Vid+Y3g" Content-Disposition: inline --nwFUwwwa9Vid+Y3g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Did CBS win the obfuscated C contest yet? I was just looking at a msan issue and then looked at this: CHECK(FUNC_SEI(message_list)(ctx, rw, ¤t->message_list, 1)); #define CHECK(call) do { \ err = (call); \ if (err < 0) \ return err; \ } while (0) #define FUNC_NAME2(rw, codec, name) cbs_ ## codec ## _ ## rw ## _ ## name #define FUNC_NAME1(rw, codec, name) FUNC_NAME2(rw, codec, name) #define FUNC_H264(name) FUNC_NAME1(READWRITE, h264, name) #define FUNC_H265(name) FUNC_NAME1(READWRITE, h265, name) #define FUNC_H266(name) FUNC_NAME1(READWRITE, h266, name) #define FUNC_SEI(name) FUNC_NAME1(READWRITE, sei, name) #define SEI_FUNC(name, args) \ static int FUNC(name) args; \ static int FUNC(name ## _internal)(CodedBitstreamContext *ctx, \ RWContext *rw, void *cur, \ SEIMessageState *state) \ { \ return FUNC(name)(ctx, rw, cur, state); \ } \ static int FUNC(name) args anyway, can we remove all preprocessor use from cbs ? thx -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship naturally arises out of democracy, and the most aggravated form of tyranny and slavery out of the most extreme liberty. -- Plato --nwFUwwwa9Vid+Y3g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEKAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZrJX3gAKCRBhHseHBAsP q5QHAJ9Uj3Zk9iDwjWH5z/qdBpC5w9yBKQCfYuwEpf63o8rmjEi8egLlpFnaXNQ= =01qk -----END PGP SIGNATURE----- --nwFUwwwa9Vid+Y3g-- --===============0916891995800298519== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============0916891995800298519==--