[FFmpeg-cvslog] avutil: check sampleformats enum, pict type enum and media type enum against insert/remove mistakes.

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:45:34 2011 +0100| [75f2cc5134b884dd2088d7b16d6d33a46ecee02a] | committer: Michael Niedermayer

avutil: check sampleformats enum, pict type enum and media type enum against insert/remove mistakes.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=75f2cc5134b884dd2088d7b16d6d33a46ecee02a
---

 libavutil/utils.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libavutil/utils.c b/libavutil/utils.c
index 978ab4c..a8d546e 100644
--- a/libavutil/utils.c
+++ b/libavutil/utils.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list