Zhao Zhili
ba9cd06c76
avutil/avutil: make AV_TIME_BASE_Q available in C++
...
ISO C++ forbids compound-literals. It's not available with MSVC.
This is a known issue from 10 years ago, and that's why there is a
av_get_time_base_q().
Since we have no plan to remove AV_TIME_BASE_Q, just make it
available in C++.
There are multiple choices:
1. Use C++11 syntax: AVRational{1, AV_TIME_BASE}
Users may still use C++98 to write new code. So no.
2. Use av_get_time_base_q().
It's for this purpose. But it's not compile time constants as
AV_TIME_BASE_Q in C.
So I choose av_make_q() as Anton's suggestion.
https://libav-devel.libav.narkive.com/ZQCWfTun/patch-0-2-fix-avutil-h-usage-from-c
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2023-09-19 00:52:21 +08:00
..
2023-07-15 22:56:30 +03:00
2023-05-25 21:05:21 +02:00
2023-03-26 01:46:39 +01:00
2023-08-24 20:58:57 +03:00
2023-09-07 00:42:10 +02:00
2023-09-04 11:04:45 +02:00
2022-10-17 09:56:47 +02:00
2022-10-24 16:28:14 +02:00
2022-10-17 09:56:47 +02:00
2023-01-13 21:26:13 +02:00
2023-01-13 21:26:13 +02:00
2022-10-10 13:43:59 +02:00
2023-09-12 09:20:13 +02:00
2023-09-12 09:20:13 +02:00
2023-07-12 15:35:37 +02:00
2023-09-07 00:48:50 +02:00
2023-09-07 00:48:50 +02:00
2023-09-19 00:52:21 +08:00
2023-08-10 08:53:38 +02:00
2023-08-10 08:53:38 +02:00
2022-10-17 09:55:19 +02:00
2022-11-11 12:24:23 +01:00
2023-08-10 08:55:05 +02:00
2023-08-18 08:27:24 -03:00
2023-09-07 00:41:47 +02:00
2023-07-19 19:29:35 +03:00
2023-07-19 19:29:35 +03:00
2022-10-17 09:56:47 +02:00
2023-02-09 15:35:14 +01:00
2023-02-09 15:35:14 +01:00
2022-10-17 09:56:47 +02:00
2022-10-17 09:56:47 +02:00
2023-09-07 00:42:10 +02:00
2022-11-06 08:26:50 +01:00
2022-10-17 09:55:19 +02:00
2023-09-04 11:04:45 +02:00
2023-09-07 00:42:10 +02:00
2022-10-17 09:56:47 +02:00
2023-09-02 02:49:06 +02:00
2023-09-02 02:49:06 +02:00
2023-09-12 09:20:49 +02:00
2023-09-12 09:20:49 +02:00
2023-09-07 00:42:10 +02:00
2022-10-17 09:56:47 +02:00
2022-10-04 10:56:12 +02:00
2023-09-12 09:42:27 +02:00
2023-08-08 09:46:11 +02:00
2023-09-07 00:42:10 +02:00
2023-04-05 09:47:12 -03:00
2023-04-05 09:47:12 -03:00
2023-03-17 18:51:16 +08:00
2023-09-07 00:42:10 +02:00
2023-06-15 12:29:52 -07:00
2023-09-12 09:42:27 +02:00
2023-09-12 09:42:27 +02:00
2023-01-26 23:31:37 +08:00
2023-01-26 23:31:37 +08:00
2023-07-31 09:09:20 +08:00
2023-08-17 12:06:09 +08:00
2023-01-11 18:57:20 +08:00
2023-09-15 02:38:14 +02:00
2023-05-29 00:41:49 +02:00
2023-09-10 21:22:30 +02:00
2022-10-17 09:56:47 +02:00
2023-09-12 09:14:25 +02:00
2023-09-12 09:42:27 +02:00
2022-10-24 20:11:20 +02:00
2023-09-04 11:04:45 +02:00
2023-08-04 21:50:57 +03:00
2022-10-17 09:56:47 +02:00
2023-07-22 21:35:15 +03:00
2023-09-02 02:49:06 +02:00
2023-05-29 00:45:28 +02:00
2023-05-29 00:45:28 +02:00
2023-09-07 00:42:10 +02:00
2023-02-09 15:35:14 +01:00
2023-02-09 15:35:14 +01:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2023-01-31 09:08:03 +01:00
2022-10-17 09:56:47 +02:00
2023-05-29 00:41:35 +02:00
2023-05-29 00:41:35 +02:00
2023-07-16 11:48:31 +02:00
2023-07-05 10:25:12 -07:00
2022-10-17 09:51:47 +02:00
2022-10-17 09:56:47 +02:00
2023-09-12 09:17:28 +02:00
2023-09-12 09:17:28 +02:00
2023-06-23 02:06:46 +02:00
2023-09-07 00:48:50 +02:00
2022-10-17 09:55:19 +02:00
2022-10-17 09:55:19 +02:00
2023-08-19 10:03:07 -03:00
2023-09-07 00:42:10 +02:00
2023-07-22 21:35:15 +03:00
2023-09-07 00:42:10 +02:00
2022-10-17 09:51:47 +02:00
2023-09-07 00:42:10 +02:00
2023-09-01 23:59:13 +02:00
2023-09-14 12:32:02 +02:00
2023-09-01 23:59:10 +02:00
2022-10-17 09:56:47 +02:00
2023-09-19 00:52:21 +08:00
2023-01-31 14:22:54 +02:00
2023-08-08 09:46:11 +02:00
2023-08-08 09:46:11 +02:00
2023-08-26 23:14:53 +02:00
2023-08-26 23:14:53 +02:00
2023-08-28 22:29:36 +02:00
2023-08-26 23:14:53 +02:00
2023-09-07 00:42:10 +02:00