[FFmpeg-cvslog] compute_lpc_coefs: assert that normalize and fail have a supported combination

Michael Niedermayer git at videolan.org
Sun Oct 14 22:20:36 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 14 21:53:29 2012 +0200| [a6cac64f69bf526fe01840c0cd254436423e9e4b] | committer: Michael Niedermayer

compute_lpc_coefs: assert that normalize and fail have a supported combination

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

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

 libavcodec/lpc.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/lpc.h b/libavcodec/lpc.h
index 680e102..b9c35bd 100644
--- a/libavcodec/lpc.h
+++ b/libavcodec/lpc.h
@@ -23,6 +23,7 @@
 #define AVCODEC_LPC_H
 
 #include <stdint.h>
+#include "libavutil/avassert.h"
 #include "dsputil.h"
 
 #define ORDER_METHOD_EST     0
@@ -122,6 +123,8 @@ static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order,
     LPC_TYPE err;
     LPC_TYPE *lpc_last = lpc;
 
+    av_assert2(normalize || !fail);
+
     if (normalize)
         err = *autoc++;
 



More information about the ffmpeg-cvslog mailing list