ffmpeg/doc
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
..
doxy
examples avutil/imgutils: Add wrapper for av_image_copy() to avoid casts 2023-09-12 09:42:27 +02:00
.gitignore
APIchanges avutil/avutil: make AV_TIME_BASE_Q available in C++ 2023-09-19 00:52:21 +08:00
Doxyfile
Makefile doc: Merge doc/dev_community/* and Code of Conduct into a seperate file 2023-03-01 00:30:59 +01:00
authors.texi Use https for repository links 2023-03-01 21:59:10 +01:00
bitstream_filters.texi
bootstrap.min.css
build_system.txt
codecs.texi lavc: deprecate AVCodecContext.ticks_per_frame 2023-05-15 10:56:18 +02:00
community.texi doc: Fix building community.html from the new community.texi 2023-03-01 09:42:09 +02:00
decoders.texi lavc/libaribcaption.c: add ARIB caption decoder using libaribcaption 2023-03-28 12:05:19 -04:00
default.css
demuxers.texi avformat/mov: add interleaved_read option 2023-09-14 18:49:51 +08:00
developer.texi doc/developer: Require new modules to include tests 2023-06-24 01:50:24 +02:00
devices.texi
doxy-wrapper.sh
encoders.texi lavc/libx264: add mb_info option 2023-08-08 10:06:38 +02:00
errno.txt
faq.texi
fate.texi tests/fate-run: add testing with a random number of threads 2023-07-11 19:19:32 +02:00
fate_config.sh.template
ffmpeg-bitstream-filters.texi
ffmpeg-codecs.texi
ffmpeg-devices.texi
ffmpeg-filters.texi
ffmpeg-formats.texi
ffmpeg-protocols.texi
ffmpeg-resampler.texi
ffmpeg-scaler.texi
ffmpeg-utils.texi
ffmpeg.texi fftools/ffmpeg: deprecate the -top option 2023-09-18 17:16:06 +02:00
ffmpeg.txt
ffplay.texi
ffprobe.texi
ffprobe.xsd fftools/ffprobe: print crop_* frame fields 2023-03-26 16:39:59 -03:00
fftools-common-opts.texi
filter_design.txt
filters.texi lavfi/vf_libplacebo: add extra_opts AVDictionary 2023-08-27 13:37:03 +02:00
formats.texi
general.texi
general_contents.texi doc: mention OSQ support 2023-09-02 21:32:37 +02:00
git-howto.texi Use https for repository links 2023-03-01 21:59:10 +01:00
indevs.texi avdevice/lavfi: update documentation 2023-05-07 17:29:00 +02:00
issue_tracker.txt
lexicon
libav-merge.txt
libavcodec.texi
libavdevice.texi
libavfilter.texi
libavformat.texi
libavutil.texi
libswresample.texi
libswscale.texi
mailing-list-faq.texi doc: Merge doc/dev_community/* and Code of Conduct into a seperate file 2023-03-01 00:30:59 +01:00
metadata.texi
mips.txt
multithreading.txt
muxers.texi avformat/evc_muxer: Added muxer to handle writing EVC encoded data into file or output bytestream 2023-06-15 09:51:13 -03:00
nut.texi
optimization.txt
outdevs.texi avdevice/decklink_enc: add support for SMPTE 2038 VANC packet output 2023-07-02 19:57:45 +02:00
patchwork
platform.texi doc/platform: drop reference to ffmpeg.zeranoe.com 2023-04-02 16:28:54 +02:00
print_options.c
protocols.texi avformat/rtmpproto: support enhanced rtmp 2023-09-05 09:14:18 +08:00
rate_distortion.txt
resampler.texi swresample/swresample: add a used channel layout option using the new API 2023-02-19 18:28:45 -03:00
scaler.texi
snow.txt
style.min.css
swresample.txt
swscale.txt
t2h.init
t2h.pm
tablegen.txt
texi2pod.pl
texidep.pl
transforms.md
undefined.txt
utils.texi avutil/channel_layout: add a 7.1(top) channel layout 2022-11-03 19:39:45 -03:00
writing_filters.txt