mirror of https://github.com/FFmpeg/FFmpeg.git
This avoids having to rebuild big files every time FFMPEG_VERSION changes (which it does with every commit). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>release/5.1
parent
3417379d5e
commit
f2b79c5b85
26 changed files with 397 additions and 202 deletions
@ -0,0 +1,50 @@ |
||||
/*
|
||||
* Version functions. |
||||
* |
||||
* This file is part of FFmpeg. |
||||
* |
||||
* FFmpeg is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU Lesser General Public |
||||
* License as published by the Free Software Foundation; either |
||||
* version 2.1 of the License, or (at your option) any later version. |
||||
* |
||||
* FFmpeg is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
* Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public |
||||
* License along with FFmpeg; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#include "config.h" |
||||
|
||||
#include "libavutil/avassert.h" |
||||
#include "avcodec.h" |
||||
#include "codec_id.h" |
||||
#include "version.h" |
||||
|
||||
#include "libavutil/ffversion.h" |
||||
const char av_codec_ffversion[] = "FFmpeg version " FFMPEG_VERSION; |
||||
|
||||
unsigned avcodec_version(void) |
||||
{ |
||||
av_assert0(AV_CODEC_ID_PCM_S8_PLANAR==65563); |
||||
av_assert0(AV_CODEC_ID_ADPCM_G722==69660); |
||||
av_assert0(AV_CODEC_ID_SRT==94216); |
||||
av_assert0(LIBAVCODEC_VERSION_MICRO >= 100); |
||||
|
||||
return LIBAVCODEC_VERSION_INT; |
||||
} |
||||
|
||||
const char *avcodec_configuration(void) |
||||
{ |
||||
return FFMPEG_CONFIGURATION; |
||||
} |
||||
|
||||
const char *avcodec_license(void) |
||||
{ |
||||
#define LICENSE_PREFIX "libavcodec license: " |
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; |
||||
} |
@ -0,0 +1,45 @@ |
||||
/*
|
||||
* Version functions. |
||||
* |
||||
* This file is part of FFmpeg. |
||||
* |
||||
* FFmpeg is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU Lesser General Public |
||||
* License as published by the Free Software Foundation; either |
||||
* version 2.1 of the License, or (at your option) any later version. |
||||
* |
||||
* FFmpeg is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
* Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public |
||||
* License along with FFmpeg; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#include "config.h" |
||||
|
||||
#include "libavutil/avassert.h" |
||||
#include "avdevice.h" |
||||
#include "version.h" |
||||
|
||||
#include "libavutil/ffversion.h" |
||||
const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION; |
||||
|
||||
unsigned avdevice_version(void) |
||||
{ |
||||
av_assert0(LIBAVDEVICE_VERSION_MICRO >= 100); |
||||
return LIBAVDEVICE_VERSION_INT; |
||||
} |
||||
|
||||
const char * avdevice_configuration(void) |
||||
{ |
||||
return FFMPEG_CONFIGURATION; |
||||
} |
||||
|
||||
const char * avdevice_license(void) |
||||
{ |
||||
#define LICENSE_PREFIX "libavdevice license: " |
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; |
||||
} |
@ -0,0 +1,44 @@ |
||||
/*
|
||||
* Version functions. |
||||
* |
||||
* This file is part of FFmpeg. |
||||
* |
||||
* FFmpeg is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU Lesser General Public |
||||
* License as published by the Free Software Foundation; either |
||||
* version 2.1 of the License, or (at your option) any later version. |
||||
* |
||||
* FFmpeg is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
* Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public |
||||
* License along with FFmpeg; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#include "config.h" |
||||
#include "libavutil/avassert.h" |
||||
#include "avfilter.h" |
||||
#include "version.h" |
||||
|
||||
#include "libavutil/ffversion.h" |
||||
const char av_filter_ffversion[] = "FFmpeg version " FFMPEG_VERSION; |
||||
|
||||
unsigned avfilter_version(void) |
||||
{ |
||||
av_assert0(LIBAVFILTER_VERSION_MICRO >= 100); |
||||
return LIBAVFILTER_VERSION_INT; |
||||
} |
||||
|
||||
const char *avfilter_configuration(void) |
||||
{ |
||||
return FFMPEG_CONFIGURATION; |
||||
} |
||||
|
||||
const char *avfilter_license(void) |
||||
{ |
||||
#define LICENSE_PREFIX "libavfilter license: " |
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; |
||||
} |
@ -0,0 +1,45 @@ |
||||
/*
|
||||
* Version functions. |
||||
* |
||||
* This file is part of FFmpeg. |
||||
* |
||||
* FFmpeg is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU Lesser General Public |
||||
* License as published by the Free Software Foundation; either |
||||
* version 2.1 of the License, or (at your option) any later version. |
||||
* |
||||
* FFmpeg is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
* Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public |
||||
* License along with FFmpeg; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#include "config.h" |
||||
|
||||
#include "libavutil/avassert.h" |
||||
#include "avformat.h" |
||||
#include "version.h" |
||||
|
||||
#include "libavutil/ffversion.h" |
||||
const char av_format_ffversion[] = "FFmpeg version " FFMPEG_VERSION; |
||||
|
||||
unsigned avformat_version(void) |
||||
{ |
||||
av_assert0(LIBAVFORMAT_VERSION_MICRO >= 100); |
||||
return LIBAVFORMAT_VERSION_INT; |
||||
} |
||||
|
||||
const char *avformat_configuration(void) |
||||
{ |
||||
return FFMPEG_CONFIGURATION; |
||||
} |
||||
|
||||
const char *avformat_license(void) |
||||
{ |
||||
#define LICENSE_PREFIX "libavformat license: " |
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; |
||||
} |
@ -0,0 +1,71 @@ |
||||
/*
|
||||
* Version functions. |
||||
* |
||||
* This file is part of FFmpeg. |
||||
* |
||||
* FFmpeg is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU Lesser General Public |
||||
* License as published by the Free Software Foundation; either |
||||
* version 2.1 of the License, or (at your option) any later version. |
||||
* |
||||
* FFmpeg is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
* Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public |
||||
* License along with FFmpeg; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#include <stdlib.h> |
||||
|
||||
#include "config.h" |
||||
#include "avassert.h" |
||||
#include "avutil.h" |
||||
#include "common.h" |
||||
#include "libm.h" |
||||
#include "log.h" |
||||
#include "samplefmt.h" |
||||
#include "version.h" |
||||
|
||||
#include "libavutil/ffversion.h" |
||||
const char av_util_ffversion[] = "FFmpeg version " FFMPEG_VERSION; |
||||
|
||||
const char *av_version_info(void) |
||||
{ |
||||
return FFMPEG_VERSION; |
||||
} |
||||
|
||||
unsigned avutil_version(void) |
||||
{ |
||||
av_assert0(AV_SAMPLE_FMT_DBLP == 9); |
||||
av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4); |
||||
av_assert0(AV_PICTURE_TYPE_BI == 7); |
||||
av_assert0(LIBAVUTIL_VERSION_MICRO >= 100); |
||||
av_assert0(HAVE_MMX2 == HAVE_MMXEXT); |
||||
|
||||
av_assert0(((size_t)-1) > 0); // C guarantees this but if false on a platform we care about revert at least b284e1ffe343d6697fb950d1ee517bafda8a9844
|
||||
|
||||
if (av_sat_dadd32(1, 2) != 5) { |
||||
av_log(NULL, AV_LOG_FATAL, "Libavutil has been built with a broken binutils, please upgrade binutils and rebuild\n"); |
||||
abort(); |
||||
} |
||||
|
||||
if (llrint(1LL<<60) != 1LL<<60) { |
||||
av_log(NULL, AV_LOG_ERROR, "Libavutil has been linked to a broken llrint()\n"); |
||||
} |
||||
|
||||
return LIBAVUTIL_VERSION_INT; |
||||
} |
||||
|
||||
const char *avutil_configuration(void) |
||||
{ |
||||
return FFMPEG_CONFIGURATION; |
||||
} |
||||
|
||||
const char *avutil_license(void) |
||||
{ |
||||
#define LICENSE_PREFIX "libavutil license: " |
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; |
||||
} |
@ -0,0 +1,44 @@ |
||||
/*
|
||||
* Version functions. |
||||
* |
||||
* This file is part of FFmpeg. |
||||
* |
||||
* FFmpeg is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU Lesser General Public |
||||
* License as published by the Free Software Foundation; either |
||||
* version 2.1 of the License, or (at your option) any later version. |
||||
* |
||||
* FFmpeg is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
* Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public |
||||
* License along with FFmpeg; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#include "config.h" |
||||
#include "libavutil/avassert.h" |
||||
#include "postprocess.h" |
||||
#include "version.h" |
||||
|
||||
#include "libavutil/ffversion.h" |
||||
const char postproc_ffversion[] = "FFmpeg version " FFMPEG_VERSION; |
||||
|
||||
unsigned postproc_version(void) |
||||
{ |
||||
av_assert0(LIBPOSTPROC_VERSION_MICRO >= 100); |
||||
return LIBPOSTPROC_VERSION_INT; |
||||
} |
||||
|
||||
const char *postproc_configuration(void) |
||||
{ |
||||
return FFMPEG_CONFIGURATION; |
||||
} |
||||
|
||||
const char *postproc_license(void) |
||||
{ |
||||
#define LICENSE_PREFIX "libpostproc license: " |
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; |
||||
} |
@ -0,0 +1,45 @@ |
||||
/*
|
||||
* Version functions. |
||||
* |
||||
* This file is part of FFmpeg. |
||||
* |
||||
* FFmpeg is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU Lesser General Public |
||||
* License as published by the Free Software Foundation; either |
||||
* version 2.1 of the License, or (at your option) any later version. |
||||
* |
||||
* FFmpeg is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
* Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public |
||||
* License along with FFmpeg; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#include "config.h" |
||||
#include "libavutil/avassert.h" |
||||
#include "swresample.h" |
||||
#include "version.h" |
||||
|
||||
#include "libavutil/ffversion.h" |
||||
const char swr_ffversion[] = "FFmpeg version " FFMPEG_VERSION; |
||||
|
||||
unsigned swresample_version(void) |
||||
{ |
||||
av_assert0(LIBSWRESAMPLE_VERSION_MICRO >= 100); |
||||
return LIBSWRESAMPLE_VERSION_INT; |
||||
} |
||||
|
||||
const char *swresample_configuration(void) |
||||
{ |
||||
return FFMPEG_CONFIGURATION; |
||||
} |
||||
|
||||
const char *swresample_license(void) |
||||
{ |
||||
#define LICENSE_PREFIX "libswresample license: " |
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; |
||||
} |
||||
|
@ -0,0 +1,41 @@ |
||||
/*
|
||||
* Version functions. |
||||
* |
||||
* This file is part of FFmpeg. |
||||
* |
||||
* FFmpeg is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU Lesser General Public |
||||
* License as published by the Free Software Foundation; either |
||||
* version 2.1 of the License, or (at your option) any later version. |
||||
* |
||||
* FFmpeg is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||||
* Lesser General Public License for more details. |
||||
* |
||||
* You should have received a copy of the GNU Lesser General Public |
||||
* License along with FFmpeg; if not, write to the Free Software |
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
||||
*/ |
||||
|
||||
#include "config.h" |
||||
#include "libavutil/avassert.h" |
||||
#include "swscale.h" |
||||
#include "version.h" |
||||
|
||||
unsigned swscale_version(void) |
||||
{ |
||||
av_assert0(LIBSWSCALE_VERSION_MICRO >= 100); |
||||
return LIBSWSCALE_VERSION_INT; |
||||
} |
||||
|
||||
const char *swscale_configuration(void) |
||||
{ |
||||
return FFMPEG_CONFIGURATION; |
||||
} |
||||
|
||||
const char *swscale_license(void) |
||||
{ |
||||
#define LICENSE_PREFIX "libswscale license: " |
||||
return &LICENSE_PREFIX FFMPEG_LICENSE[sizeof(LICENSE_PREFIX) - 1]; |
||||
} |
Loading…
Reference in new issue