[FFmpeg-devel] [PATCH 1/3] avutil: move internal function out of public header

wm4 nfxjfg at googlemail.com
Tue Feb 10 13:27:02 CET 2015


---
Why wasn't this done this way in the first place...
---
 libavutil/internal.h | 2 ++
 libavutil/pixdesc.h  | 2 --
 libavutil/utils.c    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavutil/internal.h b/libavutil/internal.h
index 0a20142..143e2db 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -273,4 +273,6 @@ static av_always_inline av_const int avpriv_mirror(int x, int w)
 uint64_t ff_get_channel_layout(const char *name, int compat);
 #endif
 
+void ff_check_pixfmt_descriptors(void);
+
 #endif /* AVUTIL_INTERNAL_H */
diff --git a/libavutil/pixdesc.h b/libavutil/pixdesc.h
index 7470837..c4d0548 100644
--- a/libavutil/pixdesc.h
+++ b/libavutil/pixdesc.h
@@ -310,8 +310,6 @@ int av_pix_fmt_get_chroma_sub_sample(enum AVPixelFormat pix_fmt,
  */
 int av_pix_fmt_count_planes(enum AVPixelFormat pix_fmt);
 
-void ff_check_pixfmt_descriptors(void);
-
 /**
  * Utility function to swap the endianness of a pixel format.
  *
diff --git a/libavutil/utils.c b/libavutil/utils.c
index da8b5ae..3682168 100644
--- a/libavutil/utils.c
+++ b/libavutil/utils.c
@@ -20,7 +20,7 @@
 #include "avutil.h"
 #include "avassert.h"
 #include "samplefmt.h"
-#include "pixdesc.h"
+#include "internal.h"
 
 /**
  * @file
-- 
2.1.4



More information about the ffmpeg-devel mailing list