Use 'enum PixelFormat *' rather than 'int *' as type for the
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Oct 2009 09:31:57 +0000 (09:31 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 18 Oct 2009 09:31:57 +0000 (09:31 +0000)
AVFilterFormats.formats field.
Cleaner / safer.

Originally committed as revision 20274 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/avfilter.h

index 2b17dea..4aa1125 100644 (file)
@@ -24,7 +24,7 @@
 
 #define LIBAVFILTER_VERSION_MAJOR  1
 #define LIBAVFILTER_VERSION_MINOR  0
-#define LIBAVFILTER_VERSION_MICRO  0
+#define LIBAVFILTER_VERSION_MICRO  1
 
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
                                                LIBAVFILTER_VERSION_MINOR, \
@@ -164,7 +164,7 @@ typedef struct AVFilterFormats AVFilterFormats;
 struct AVFilterFormats
 {
     unsigned format_count;      ///< number of formats
-    int *formats;               ///< list of formats
+    enum PixelFormat *formats;  ///< list of pixel formats
 
     unsigned refcount;          ///< number of references to this list
     AVFilterFormats ***refs;    ///< references to this list