[FFmpeg-cvslog] r22736 - in trunk: libavcodec/avcodec.h libavutil/avutil.h

stefano subversion
Wed Mar 31 01:31:17 CEST 2010


Author: stefano
Date: Wed Mar 31 01:31:16 2010
New Revision: 22736

Log:
Move AVMediaType from libavcodec to libavutil.

This allows applications/libraries which require that symbol
(e.g. libavfilter) to be compiled without to depend on the presence of
libavcodec/avcodec.h, which may not be installed.

Modified:
   trunk/libavcodec/avcodec.h
   trunk/libavutil/avutil.h

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	Wed Mar 31 01:30:55 2010	(r22735)
+++ trunk/libavcodec/avcodec.h	Wed Mar 31 01:31:16 2010	(r22736)
@@ -355,16 +355,6 @@ enum CodecID {
                                 * stream (only used by libavformat) */
 };
 
-enum AVMediaType {
-    AVMEDIA_TYPE_UNKNOWN = -1,
-    AVMEDIA_TYPE_VIDEO,
-    AVMEDIA_TYPE_AUDIO,
-    AVMEDIA_TYPE_DATA,
-    AVMEDIA_TYPE_SUBTITLE,
-    AVMEDIA_TYPE_ATTACHMENT,
-    AVMEDIA_TYPE_NB
-};
-
 #if LIBAVCODEC_VERSION_MAJOR < 53
 #define CodecType AVMediaType
 

Modified: trunk/libavutil/avutil.h
==============================================================================
--- trunk/libavutil/avutil.h	Wed Mar 31 01:30:55 2010	(r22735)
+++ trunk/libavutil/avutil.h	Wed Mar 31 01:31:16 2010	(r22736)
@@ -40,7 +40,7 @@
 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
 
 #define LIBAVUTIL_VERSION_MAJOR 50
-#define LIBAVUTIL_VERSION_MINOR 13
+#define LIBAVUTIL_VERSION_MINOR 14
 #define LIBAVUTIL_VERSION_MICRO  0
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
@@ -68,6 +68,16 @@ const char *avutil_configuration(void);
  */
 const char *avutil_license(void);
 
+enum AVMediaType {
+    AVMEDIA_TYPE_UNKNOWN = -1,
+    AVMEDIA_TYPE_VIDEO,
+    AVMEDIA_TYPE_AUDIO,
+    AVMEDIA_TYPE_DATA,
+    AVMEDIA_TYPE_SUBTITLE,
+    AVMEDIA_TYPE_ATTACHMENT,
+    AVMEDIA_TYPE_NB
+};
+
 #include "common.h"
 #include "error.h"
 #include "mathematics.h"



More information about the ffmpeg-cvslog mailing list