mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
pixfmts: Selfcheck against insertions / deletions in the enum.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f37b2d5a68
commit
68230eb375
@ -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 @@
|
|||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user