]> git.sesse.net Git - ffmpeg/commitdiff
lavfi: uninline avfilter_copy_buffer_ref_props().
authorAnton Khirnov <anton@khirnov.net>
Mon, 7 May 2012 05:15:06 +0000 (07:15 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 7 May 2012 12:23:36 +0000 (14:23 +0200)
A nontrivial public function such as this should most certainly NOT be
inline.

libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/version.h

index 91eb7f97cf0e746b3b66e7c2c478a406f4f96ee5..d1c82cee2fa9f072c0eea9702249e188e6d627c9 100644 (file)
@@ -707,3 +707,16 @@ int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src)
 
     return 0;
 }
+
+void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
+{
+    // copy common properties
+    dst->pts             = src->pts;
+    dst->pos             = src->pos;
+
+    switch (src->type) {
+    case AVMEDIA_TYPE_VIDEO: *dst->video = *src->video; break;
+    case AVMEDIA_TYPE_AUDIO: *dst->audio = *src->audio; break;
+    default: break;
+    }
+}
index 89ab7dbe2ae5a8340fdb56ea23388d8bca74463e..c2049f98fe4ad11266f41d7ca5f143819a5a5b58 100644 (file)
@@ -145,18 +145,7 @@ typedef struct AVFilterBufferRef {
 /**
  * Copy properties of src to dst, without copying the actual data
  */
-static inline void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src)
-{
-    // copy common properties
-    dst->pts             = src->pts;
-    dst->pos             = src->pos;
-
-    switch (src->type) {
-    case AVMEDIA_TYPE_VIDEO: *dst->video = *src->video; break;
-    case AVMEDIA_TYPE_AUDIO: *dst->audio = *src->audio; break;
-    default: break;
-    }
-}
+void avfilter_copy_buffer_ref_props(AVFilterBufferRef *dst, AVFilterBufferRef *src);
 
 /**
  * Add a new reference to a buffer.
index 5d646e4f86764fa97f7974e082c17f9ed29475af..718ed7812e19d782939524fe93f20996196ae1bf 100644 (file)
@@ -30,7 +30,7 @@
 
 #define LIBAVFILTER_VERSION_MAJOR  2
 #define LIBAVFILTER_VERSION_MINOR  16
-#define LIBAVFILTER_VERSION_MICRO  0
+#define LIBAVFILTER_VERSION_MICRO  1
 
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
                                                LIBAVFILTER_VERSION_MINOR, \