Re: [FFmpeg-devel] [RFC PATCH] avutil/avutil: make AV_TIME_BASE_Q available in C++

2023-08-22 Thread Anton Khirnov
Quoting Zhao Zhili (2023-08-18 20: 11:31) > From: Zhao Zhili Date: Tue, 22 Aug 2023 14:29:44 +0200 Message-ID: <169270738483.26513.18411031229205897...@lain.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 > > It still different than AV_TIME_BASE_Q in C, like you cannot take > address of AV

Re: [FFmpeg-devel] [RFC PATCH] avutil/avutil: make AV_TIME_BASE_Q available in C++

2023-08-18 Thread Michael Niedermayer
On Sat, Aug 19, 2023 at 02:11:31AM +0800, Zhao Zhili wrote: > From: Zhao Zhili > > It still different than AV_TIME_BASE_Q in C, like you cannot take > address of AV_TIME_BASE_Q in C++. It's better than nothing. > --- iam in favor of better C++ compatibility of public headers thx [...] -- Mich

[FFmpeg-devel] [RFC PATCH] avutil/avutil: make AV_TIME_BASE_Q available in C++

2023-08-18 Thread Zhao Zhili
From: Zhao Zhili It still different than AV_TIME_BASE_Q in C, like you cannot take address of AV_TIME_BASE_Q in C++. It's better than nothing. --- libavutil/avutil.h | 5 + 1 file changed, 5 insertions(+) diff --git a/libavutil/avutil.h b/libavutil/avutil.h index 64b68bdbd3..5201cc6c5e 1006