Commit 68230eb3 authored by Michael Niedermayer's avatar Michael Niedermayer

pixfmts: Selfcheck against insertions / deletions in the enum.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f37b2d5a
...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment