[FFmpeg-cvslog] deprecate av_parse_cpu_flags

Michael Niedermayer git at videolan.org
Thu Aug 16 22:09:14 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 16 21:30:10 2012 +0200| [4b529edff8934c258af95e5acc51f84deea66262] | committer: Michael Niedermayer

deprecate av_parse_cpu_flags

This function is problematic in several ways, its also quite
unpredictable which flags it ends up turning on

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b529edff8934c258af95e5acc51f84deea66262
---

 libavutil/cpu.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/cpu.h b/libavutil/cpu.h
index 3adccbd..de15ee3 100644
--- a/libavutil/cpu.h
+++ b/libavutil/cpu.h
@@ -87,6 +87,7 @@ attribute_deprecated void av_set_cpu_flags_mask(int mask);
  * Please use av_parse_cpu_caps() when possible.
  * @return a combination of AV_CPU_* flags, negative on error.
  */
+attribute_deprecated
 int av_parse_cpu_flags(const char *s);
 
 /**



More information about the ffmpeg-cvslog mailing list