[FFmpeg-cvslog] lpc: check that lpc_type is valid in ff_lpc_calc_coefs

Michael Niedermayer git at videolan.org
Sun Oct 28 04:08:37 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 28 03:27:16 2012 +0100| [c4a36b6f70f37e668874d134f955eb96e23853c9] | committer: Michael Niedermayer

lpc: check that lpc_type is valid in ff_lpc_calc_coefs

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

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

 libavcodec/lpc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index c8d24c0..5ccd5a8 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -226,7 +226,8 @@ int ff_lpc_calc_coefs(LPCContext *s,
         }
         for(i=max_order-1; i>0; i--)
             ref[i] = ref[i-1] - ref[i];
-    }
+    } else
+        av_assert0(0);
     opt_order = max_order;
 
     if(omethod == ORDER_METHOD_EST) {



More information about the ffmpeg-cvslog mailing list