[FFmpeg-devel] [PATCH 1/2] osx: detect version of mac os

Stefano Sabatini stefasab at gmail.com
Thu Aug 23 19:25:52 CEST 2012


On date Thursday 2012-08-23 16:49:12 +0800, Xidorn Quan encoded:
> ---
>  configure          |  2 ++
>  libavutil/Makefile |  4 +++
>  libavutil/osx.c    | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  libavutil/osx.h    | 34 +++++++++++++++++++++
>  4 files changed, 127 insertions(+)
>  create mode 100644 libavutil/osx.c
>  create mode 100644 libavutil/osx.h

What's this good for?

[...]
> +#ifndef AVUTIL_OSX_H
> +#define AVUTIL_OSX_H
> +
> +/**
> + * Get version of Mac OS X
> + *
> + * @param major  pointer to store major version
> + * @param minor  pointer to store minor version
> + * @param bugfix pointer to store bugfix version
> + * @return       zero if succeed, -1 otherwise
> + */
> +int av_get_osx_version(int *major, int *minor, int *bugfix);

Also how this belongs to a media library? I mean why this should be
defined in a generic library, rather than, say, in a MacOS
application/library?

For library implementation purposes we only need to know when a
feature is available or not, and this is done during the configuration
stage.
-- 
FFmpeg = Friendly & Funny Mega Philosophical Elaborated Gospel


More information about the ffmpeg-devel mailing list