[FFmpeg-cvslog] pixfmts: Selfcheck against insertions / deletions in the enum.
Michael Niedermayer
git at videolan.org
Sat Dec 17 06:19:11 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 17 05:41:42 2011 +0100| [68230eb3753f7496c4ba13e727dd48a5997eb23c] | committer: Michael Niedermayer
pixfmts: Selfcheck against insertions / deletions in the enum.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=68230eb3753f7496c4ba13e727dd48a5997eb23c
---
libavutil/utils.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavutil/utils.c b/libavutil/utils.c
index e6c8424..978ab4c 100644
--- a/libavutil/utils.c
+++ b/libavutil/utils.c
@@ -18,6 +18,7 @@
#include "config.h"
#include "avutil.h"
+#include "avassert.h"
/**
* @file
@@ -26,6 +27,8 @@
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;
}
More information about the ffmpeg-cvslog
mailing list