Fixed an uninitialised value found by Valgrind
authorJean-Marc Valin <jean-marc.valin@octasic.com>
Tue, 6 Jul 2010 15:33:29 +0000 (11:33 -0400)
committerJean-Marc Valin <jean-marc.valin@octasic.com>
Tue, 6 Jul 2010 15:33:29 +0000 (11:33 -0400)
src_FLP/SKP_Silk_encode_frame_FLP.c

index 600cdf7..8d04489 100644 (file)
@@ -27,6 +27,7 @@ SKP_int SKP_Silk_encode_frame_FLP(
 \r
     const SKP_uint16 *FrameTermination_CDF;\r
 \r
+    sEncCtrl.sCmn.LBRR_usage = 0;\r
 TIC(ENCODE_FRAME)\r
 \r
     sEncCtrl.sCmn.Seed = psEnc->sCmn.frameCounter++ & 3;\r
@@ -468,4 +469,4 @@ void SKP_Silk_LBRR_encode_FLP(
         psEnc->sCmn.typeOffsetPrev     = typeOffset;\r
     }\r
 }\r
-#endif
\ No newline at end of file
+#endif\r