[FFmpeg-devel] [PATCH 2/2] libavutil: Document the shortcommings of av_parse_cpu_flags()

Michael Niedermayer michaelni at gmx.at
Thu Apr 26 23:25:16 CEST 2012


and suggest that av_parse_cpu_caps() be used.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavutil/cpu.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libavutil/cpu.h b/libavutil/cpu.h
index 5dcbe93..d65f5ea 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -75,6 +75,10 @@ attribute_deprecated void av_set_cpu_flags_mask(int mask);
 /**
  * Parse CPU flags from a string.
  *
+ * The returned flags contain the specified flags as well as related unspecified flags.
+ *
+ * This function exists only for compatibility with libav.
+ * Please use av_parse_cpu_caps() when possible.
  * @return a combination of AV_CPU_* flags, negative on error.
  */
 int av_parse_cpu_flags(const char *s);
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list