mirror of https://git.ffmpeg.org/ffmpeg.git
ba9cd06c76
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> |
||
---|---|---|
.. | ||
doxy | ||
examples | ||
.gitignore | ||
APIchanges | ||
Doxyfile | ||
Makefile | ||
authors.texi | ||
bitstream_filters.texi | ||
bootstrap.min.css | ||
build_system.txt | ||
codecs.texi | ||
community.texi | ||
decoders.texi | ||
default.css | ||
demuxers.texi | ||
developer.texi | ||
devices.texi | ||
doxy-wrapper.sh | ||
encoders.texi | ||
errno.txt | ||
faq.texi | ||
fate.texi | ||
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 | ||
ffmpeg.txt | ||
ffplay.texi | ||
ffprobe.texi | ||
ffprobe.xsd | ||
fftools-common-opts.texi | ||
filter_design.txt | ||
filters.texi | ||
formats.texi | ||
general.texi | ||
general_contents.texi | ||
git-howto.texi | ||
indevs.texi | ||
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 | ||
metadata.texi | ||
mips.txt | ||
multithreading.txt | ||
muxers.texi | ||
nut.texi | ||
optimization.txt | ||
outdevs.texi | ||
patchwork | ||
platform.texi | ||
print_options.c | ||
protocols.texi | ||
rate_distortion.txt | ||
resampler.texi | ||
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 | ||
writing_filters.txt |