Commit 6a499211 authored by Max Kellermann's avatar Max Kellermann

lib/ffmpeg/Time: redefine AV_TIME_BASE_Q with initializer list

libavutil's macro definition is a compound literal, which is illegal in C++. Fixes yet another -Wpedantic warning.
parent f03cc101
......@@ -36,6 +36,13 @@ extern "C" {
#undef SampleFormat
#endif
/* redefine AV_TIME_BASE_Q because libavutil's macro definition is a
compound literal, which is illegal in C++ */
#ifdef AV_TIME_BASE_Q
#undef AV_TIME_BASE_Q
#endif
static constexpr AVRational AV_TIME_BASE_Q{1, AV_TIME_BASE};
/**
* Convert a FFmpeg time stamp to a floating point value (in seconds).
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment