lpc: check that lpc_type is valid in ff_lpc_calc_coefs
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Oct 2012 02:27:16 +0000 (03:27 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Oct 2012 02:27:16 +0000 (03:27 +0100)
Fixes CID700759
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/lpc.c

index c8d24c0..5ccd5a8 100644 (file)
@@ -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) {