aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/version.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-28 18:06:33 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-31 00:08:42 +0100
commitb616be1649f9a32411a3c5b62afe1d73f5a71ed0 (patch)
treee1434a061ae47a433e45d7a028720f5f8ce42509 /libavdevice/version.c
parent2d38141ea610ef7d52ced09166b4f2b967a88a3e (diff)
downloadffmpeg-b616be1649f9a32411a3c5b62afe1d73f5a71ed0.tar.gz
lib*/version: Use static_assert for static asserts
Also update the checks that guard against inserting a new enum entry in the middle of a range. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/version.c')
-rw-r--r--libavdevice/version.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavdevice/version.c b/libavdevice/version.c
index 92d7f2d159..a058efe46e 100644
--- a/libavdevice/version.c
+++ b/libavdevice/version.c
@@ -18,9 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <assert.h>
+
#include "config.h"
-#include "libavutil/avassert.h"
#include "avdevice.h"
#include "version.h"
@@ -29,7 +30,7 @@ const char av_device_ffversion[] = "FFmpeg version " FFMPEG_VERSION;
unsigned avdevice_version(void)
{
- av_assert0(LIBAVDEVICE_VERSION_MICRO >= 100);
+ static_assert(LIBAVDEVICE_VERSION_MICRO >= 100, "micro version starts at 100");
return LIBAVDEVICE_VERSION_INT;
}