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
2022-09-03 23:54:05 +03:00
2023-05-25 21:05:21 +02:00
2023-03-26 01:46:39 +01:00
2022-06-25 12:16:51 +02: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-02-24 12:56:49 +01:00
2021-04-27 10:43:13 -03:00
2022-02-24 12:56:49 +01: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
2022-03-16 12:29:37 -03: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
2022-02-24 12:56:49 +01: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
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2023-08-10 08:53:38 +02:00
2023-08-10 08:53:38 +02:00
2022-09-13 16:50:43 -03:00
2022-02-24 12:56:49 +01:00
2022-08-10 18:49:35 +02:00
2021-09-17 13:28:09 -03:00
2022-02-24 12:56:49 +01: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
2022-09-27 13:19:52 +02:00
2023-07-19 19:29:35 +03:00
2023-07-19 19:29:35 +03:00
2022-02-24 12:56:49 +01: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-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:56:47 +02:00
2021-10-08 10:11:59 +08:00
2022-10-17 09:56:47 +02:00
2022-09-03 15:41:44 +02:00
2023-09-07 00:42:10 +02:00
2022-11-06 08:26:50 +01:00
2022-02-24 12:56:49 +01:00
2022-10-17 09:55:19 +02:00
2022-01-04 11:59:02 +01:00
2022-01-04 11:59:02 +01:00
2023-09-04 11:04:45 +02:00
2023-09-07 00:42:10 +02:00
2022-02-24 12:56:49 +01:00
2021-07-29 22:02:05 +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
2022-09-03 15:41:44 +02:00
2022-09-03 15:41:44 +02:00
2023-09-07 00:42:10 +02:00
2022-10-17 09:56:47 +02:00
2021-08-24 09:58:52 -03:00
2022-10-04 10:56:12 +02:00
2022-09-27 13:19:52 +02:00
2022-08-19 22:09:36 +02:00
2022-08-19 22:09:36 +02:00
2022-09-27 13:19:52 +02:00
2022-09-27 13:19:52 +02:00
2023-09-12 09:42:27 +02:00
2023-08-08 09:46:11 +02:00
2022-06-21 13:27:46 +03:00
2022-08-19 22:09:36 +02:00
2022-08-19 22:09:36 +02:00
2023-09-07 00:42:10 +02:00
2021-07-22 14:34:31 +02:00
2023-04-05 09:47:12 -03:00
2023-04-05 09:47:12 -03:00
2022-03-01 09:08:43 +08:00
2023-03-17 18:51:16 +08:00
2023-09-07 00:42:10 +02:00
2021-07-22 14:34:31 +02:00
2023-06-15 12:29:52 -07:00
2023-09-12 09:42:27 +02:00
2021-09-08 17:48:02 -03:00
2023-09-12 09:42:27 +02:00
2022-01-05 11:56:58 +08:00
2023-01-26 23:31:37 +08:00
2023-01-26 23:31:37 +08:00
2022-08-12 10:43:39 +08:00
2023-07-31 09:09:20 +08:00
2022-08-12 10:43:39 +08:00
2022-07-05 15:20:08 +02:00
2023-08-17 12:06:09 +08:00
2021-04-27 10:43:13 -03:00
2023-01-11 18:57:20 +08:00
2022-08-08 11:08:55 +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
2022-02-24 12:56:49 +01:00
2023-09-04 11:04:45 +02:00
2022-09-13 16:50:43 -03:00
2023-08-04 21:50:57 +03:00
2022-10-17 09:56:47 +02:00
2022-06-15 04:56:37 +02:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2023-07-22 21:35:15 +03:00
2021-07-21 16:35:27 +02:00
2021-07-29 22:02:05 +02: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
2021-07-22 14:34:31 +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
2021-07-22 14:34:31 +02:00
2021-12-18 11:55:47 -08:00
2023-01-31 09:08:03 +01:00
2022-03-15 09:42:29 -03:00
2022-01-12 13:42:26 +08:00
2022-10-17 09:56:47 +02:00
2023-05-29 00:41:35 +02:00
2022-09-26 03:02:25 +02:00
2022-02-24 12:56:49 +01:00
2022-02-24 12:56:49 +01:00
2023-05-29 00:41:35 +02:00
2022-02-24 12:56:49 +01: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-02-24 12:56:49 +01:00
2022-10-17 09:56:47 +02:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2023-09-12 09:17:28 +02:00
2023-09-12 09:17:28 +02:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01:00
2021-07-22 14:34:31 +02:00
2022-09-06 18:46:44 +03: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-02-24 12:56:49 +01:00
2022-10-17 09:55:19 +02:00
2022-02-24 12:56:49 +01:00
2023-08-19 10:03:07 -03:00
2023-09-07 00:42:10 +02:00
2022-04-22 22:54:58 +02:00
2023-07-22 21:35:15 +03:00
2023-09-07 00:42:10 +02:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01: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-05-10 06:49:32 +02:00
2022-06-12 18:34:28 +10:00
2022-10-17 09:56:47 +02:00
2022-03-17 11:11:17 +02:00
2022-05-10 06:49:32 +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
2022-02-24 12:56:49 +01:00