diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-17 05:41:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 19:05:23 +0100 |
commit | 17d82125c5cddd0d79c0e25361196a847bb0e712 (patch) | |
tree | 5dc891a1edaa6541a1858afbfcf66f4535a5380f /libavutil/utils.c | |
parent | 513b0f4872d101888997563fe263c76c546a3e25 (diff) | |
download | ffmpeg-17d82125c5cddd0d79c0e25361196a847bb0e712.tar.gz |
pixfmts: Selfcheck against insertions / deletions in the enum.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 68230eb3753f7496c4ba13e727dd48a5997eb23c)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/utils.c')
-rw-r--r-- | libavutil/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/utils.c b/libavutil/utils.c index e6c8424ab4..978ab4c743 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; } |