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.
This commit is contained in:
parent
f03cc1012d
commit
6a4992118a
@ -36,6 +36,13 @@ extern "C" {
|
|||||||
#undef SampleFormat
|
#undef SampleFormat
|
||||||
#endif
|
#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).
|
* Convert a FFmpeg time stamp to a floating point value (in seconds).
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user