mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-10 03:08:28 +08:00
15 lines
459 B
Diff
15 lines
459 B
Diff
|
diff --git a/src/avutils.h b/src/avutils.h
|
||
|
index 29c4ae0..3bfaf82 100644
|
||
|
--- a/src/avutils.h
|
||
|
+++ b/src/avutils.h
|
||
|
@@ -42,7 +42,7 @@ namespace av {
|
||
|
// Basic FFmpeg constants
|
||
|
constexpr auto NoPts = static_cast<int64_t>(AV_NOPTS_VALUE);
|
||
|
constexpr auto TimeBase = static_cast<int>(AV_TIME_BASE);
|
||
|
-constexpr auto TimeBaseQ = static_cast<AVRational>(AV_TIME_BASE_Q);
|
||
|
+constexpr auto TimeBaseQ = AVRational{1, AV_TIME_BASE};
|
||
|
|
||
|
|
||
|
template<typename R, typename T>
|
||
|
|