Skip to content
Snippets Groups Projects
Commit 68230eb3 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

pixfmts: Selfcheck against insertions / deletions in the enum.

parent f37b2d5a
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "config.h" #include "config.h"
#include "avutil.h" #include "avutil.h"
#include "avassert.h"
/** /**
* @file * @file
...@@ -26,6 +27,8 @@ ...@@ -26,6 +27,8 @@
unsigned avutil_version(void) unsigned avutil_version(void)
{ {
av_assert0(PIX_FMT_VDA_VLD == 81); //check if the pix fmt enum has not had anything inserted or removed by mistake
return LIBAVUTIL_VERSION_INT; return LIBAVUTIL_VERSION_INT;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment