| ... | ... |
@@ -3,7 +3,7 @@ FFLIBS = avutil |
| 3 | 3 |
FFLIBS-$(CONFIG_MOVIE_FILTER) += avformat avcodec |
| 4 | 4 |
FFLIBS-$(CONFIG_SCALE_FILTER) += swscale |
| 5 | 5 |
|
| 6 |
-HEADERS = avfilter.h avfiltergraph.h buffersrc.h vsrc_buffer.h |
|
| 6 |
+HEADERS = avfilter.h avfiltergraph.h buffersrc.h version.h vsrc_buffer.h |
|
| 7 | 7 |
|
| 8 | 8 |
OBJS = allfilters.o \ |
| 9 | 9 |
avfilter.o \ |
| ... | ... |
@@ -29,20 +29,10 @@ |
| 29 | 29 |
#include "libavutil/rational.h" |
| 30 | 30 |
#include "libavcodec/avcodec.h" |
| 31 | 31 |
|
| 32 |
-#define LIBAVFILTER_VERSION_MAJOR 2 |
|
| 33 |
-#define LIBAVFILTER_VERSION_MINOR 14 |
|
| 34 |
-#define LIBAVFILTER_VERSION_MICRO 0 |
|
| 35 |
- |
|
| 36 |
-#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ |
|
| 37 |
- LIBAVFILTER_VERSION_MINOR, \ |
|
| 38 |
- LIBAVFILTER_VERSION_MICRO) |
|
| 39 |
-#define LIBAVFILTER_VERSION AV_VERSION(LIBAVFILTER_VERSION_MAJOR, \ |
|
| 40 |
- LIBAVFILTER_VERSION_MINOR, \ |
|
| 41 |
- LIBAVFILTER_VERSION_MICRO) |
|
| 42 |
-#define LIBAVFILTER_BUILD LIBAVFILTER_VERSION_INT |
|
| 43 |
- |
|
| 44 | 32 |
#include <stddef.h> |
| 45 | 33 |
|
| 34 |
+#include "libavfilter/version.h" |
|
| 35 |
+ |
|
| 46 | 36 |
/** |
| 47 | 37 |
* Return the LIBAVFILTER_VERSION_INT constant. |
| 48 | 38 |
*/ |
| 49 | 39 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,43 @@ |
| 0 |
+/* |
|
| 1 |
+ * Version macros. |
|
| 2 |
+ * |
|
| 3 |
+ * This file is part of Libav. |
|
| 4 |
+ * |
|
| 5 |
+ * Libav is free software; you can redistribute it and/or |
|
| 6 |
+ * modify it under the terms of the GNU Lesser General Public |
|
| 7 |
+ * License as published by the Free Software Foundation; either |
|
| 8 |
+ * version 2.1 of the License, or (at your option) any later version. |
|
| 9 |
+ * |
|
| 10 |
+ * Libav is distributed in the hope that it will be useful, |
|
| 11 |
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 12 |
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
| 13 |
+ * Lesser General Public License for more details. |
|
| 14 |
+ * |
|
| 15 |
+ * You should have received a copy of the GNU Lesser General Public |
|
| 16 |
+ * License along with Libav; if not, write to the Free Software |
|
| 17 |
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
| 18 |
+ */ |
|
| 19 |
+ |
|
| 20 |
+#ifndef AVFILTER_VERSION_H |
|
| 21 |
+#define AVFILTER_VERSION_H |
|
| 22 |
+ |
|
| 23 |
+/** |
|
| 24 |
+ * @file |
|
| 25 |
+ * Libavfilter version macros |
|
| 26 |
+ */ |
|
| 27 |
+ |
|
| 28 |
+#include "libavutil/avutil.h" |
|
| 29 |
+ |
|
| 30 |
+#define LIBAVFILTER_VERSION_MAJOR 2 |
|
| 31 |
+#define LIBAVFILTER_VERSION_MINOR 15 |
|
| 32 |
+#define LIBAVFILTER_VERSION_MICRO 0 |
|
| 33 |
+ |
|
| 34 |
+#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ |
|
| 35 |
+ LIBAVFILTER_VERSION_MINOR, \ |
|
| 36 |
+ LIBAVFILTER_VERSION_MICRO) |
|
| 37 |
+#define LIBAVFILTER_VERSION AV_VERSION(LIBAVFILTER_VERSION_MAJOR, \ |
|
| 38 |
+ LIBAVFILTER_VERSION_MINOR, \ |
|
| 39 |
+ LIBAVFILTER_VERSION_MICRO) |
|
| 40 |
+#define LIBAVFILTER_BUILD LIBAVFILTER_VERSION_INT |
|
| 41 |
+ |
|
| 42 |
+#endif // AVFILTER_VERSION_H |