#ifndef AVFORMAT_H
#define AVFORMAT_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define LIBAVFORMAT_VERSION_INT ((51<<16)+(12<<8)+1)
#define LIBAVFORMAT_VERSION 51.12.1
#define LIBAVFORMAT_BUILD LIBAVFORMAT_VERSION_INT
/*************************************************/
/* fractional numbers for exact pts handling */
-/* the exact value of the fractional number is: 'val + num / den'. num
- is assumed to be such as 0 <= num < den */
+/**
+ * the exact value of the fractional number is: 'val + num / den'.
+ * num is assumed to be such as 0 <= num < den
+ * @deprecated Use AVRational instead
+*/
typedef struct AVFrac {
int64_t val, num, den;
} AVFrac attribute_deprecated;
/** quality, as it has been removed from AVCodecContext and put in AVVideoFrame
* MN:dunno if thats the right place, for it */
float quality;
- /** decoding: position of the first frame of the component, in
- AV_TIME_BASE fractional seconds. */
+ /** decoding: pts of the first frame of the stream, in stream time base. */
int64_t start_time;
- /** decoding: duration of the stream, in AV_TIME_BASE fractional
- seconds. */
+ /** decoding: duration of the stream, in stream time base. */
int64_t duration;
char language[4]; /** ISO 639 3-letter language code (empty string if undefined) */
#endif /* HAVE_AV_CONFIG_H */
-#ifdef __cplusplus
-}
-#endif
-
#endif /* AVFORMAT_H */