Displaying 1 result from an estimated 1 matches for "silk_toc_struct".
Did you mean:
silk_plc_struct
2012 Aug 06
1
[PATCH] Fixed sizeof param in silk_get_TOC. Size for memset was calculated wrong.
...+), 1 deletion(-)
diff --git a/silk/dec_API.c b/silk/dec_API.c
index b5acb6b..1c356c7 100644
--- a/silk/dec_API.c
+++ b/silk/dec_API.c
@@ -357,7 +357,7 @@ opus_int silk_get_TOC(
return -1;
}
- silk_memset( Silk_TOC, 0, sizeof( Silk_TOC ) );
+ silk_memset( Silk_TOC, 0, sizeof( silk_TOC_struct ) );
/* For stereo, extract the flags for the mid channel */
flags = silk_RSHIFT( payload[ 0 ], 7 - nFramesPerPayload ) & ( silk_LSHIFT( 1, nFramesPerPayload + 1 ) - 1 );
--
1.7.9.6 (Apple Git-31.1)