]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/avdevice.h
Fix unaligned accesses by doing bytewise access until aligned, then
[ffmpeg] / libavdevice / avdevice.h
index afab46b1f5122dd313b6773cab7de4f9622ae335..61400c111b8a0af7b292455ddd5ca30f78a66ca9 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_AVDEVICE_H
-#define FFMPEG_AVDEVICE_H
+#ifndef AVDEVICE_AVDEVICE_H
+#define AVDEVICE_AVDEVICE_H
 
-#define LIBAVDEVICE_VERSION_INT ((52<<16)+(0<<8)+0)
-#define LIBAVDEVICE_VERSION     52.0.0
+#define LIBAVDEVICE_VERSION_MAJOR 52
+#define LIBAVDEVICE_VERSION_MINOR  2
+#define LIBAVDEVICE_VERSION_MICRO  0
+
+#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
+                                               LIBAVDEVICE_VERSION_MINOR, \
+                                               LIBAVDEVICE_VERSION_MICRO)
+#define LIBAVDEVICE_VERSION     AV_VERSION(LIBAVDEVICE_VERSION_MAJOR, \
+                                           LIBAVDEVICE_VERSION_MINOR, \
+                                           LIBAVDEVICE_VERSION_MICRO)
 #define LIBAVDEVICE_BUILD       LIBAVDEVICE_VERSION_INT
 
+/**
+ * Returns the LIBAVDEVICE_VERSION_INT constant.
+ */
+unsigned avdevice_version(void);
+
 /**
  * Initialize libavdevice and register all the input and output devices.
  * @warning This function is not thread safe.
  */
 void avdevice_register_all(void);
 
-#endif /* FFMPEG_AVDEVICE_H */
+#endif /* AVDEVICE_AVDEVICE_H */