This fixes usage of AV_TIME_BASE_Q in C++ applications, which
cannot use compound literals directly in their code.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
... | ... |
@@ -240,6 +240,11 @@ enum AVMediaType { |
240 | 240 |
#define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} |
241 | 241 |
|
242 | 242 |
/** |
243 |
+ * Return the fractional representation of the internal time base. |
|
244 |
+ */ |
|
245 |
+AVRational av_get_time_base_q(void); |
|
246 |
+ |
|
247 |
+/** |
|
243 | 248 |
* @} |
244 | 249 |
* @} |
245 | 250 |
* @defgroup lavu_picture Image related |
... | ... |
@@ -273,6 +278,7 @@ char av_get_picture_type_char(enum AVPictureType pict_type); |
273 | 273 |
*/ |
274 | 274 |
|
275 | 275 |
#include "error.h" |
276 |
+#include "rational.h" |
|
276 | 277 |
#include "version.h" |
277 | 278 |
#include "macros.h" |
278 | 279 |
|