Commit 75f2cc51 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil: check sampleformats enum, pict type enum and media type enum against...

avutil: check sampleformats enum, pict type enum and media type enum against insert/remove mistakes.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 68230eb3
......@@ -19,6 +19,7 @@
#include "config.h"
#include "avutil.h"
#include "avassert.h"
#include "samplefmt.h"
/**
* @file
......@@ -28,6 +29,9 @@
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
av_assert0(AV_SAMPLE_FMT_DBLP == 9);
av_assert0(AVMEDIA_TYPE_ATTACHMENT == 4);
av_assert0(AV_PICTURE_TYPE_BI == 7);
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