Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyril Lashkevich <notorca@gmail.com>2012-08-06 17:38:18 +0400
committerGregory Maxwell <greg@xiph.org>2012-08-06 20:29:42 +0400
commit622046c1f1230e107664e35873d46b731f32df41 (patch)
tree5325e4644cb15b223f7e3ec4cd250a47e3b950c3
parentbf7c1605f7ab52919708a6b5e759b08fea82a9f5 (diff)
Fixed sizeof param in silk_get_TOC. Size for memset was calculated wrong.
Signed-off-by: Gregory Maxwell <greg@xiph.org> silk_get_TOC is unused, unreachable, and not useful without some packet pre-processing, but until we remove it it should be correct. This was also reported by Mozilla.
-rw-r--r--silk/dec_API.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/silk/dec_API.c b/silk/dec_API.c
index b5acb6ba..2ca24519 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 ) );
/* For stereo, extract the flags for the mid channel */
flags = silk_RSHIFT( payload[ 0 ], 7 - nFramesPerPayload ) & ( silk_LSHIFT( 1, nFramesPerPayload + 1 ) - 1 );