Skip to content
Snippets Groups Projects
Commit 622046c1 authored by Cyril Lashkevich's avatar Cyril Lashkevich Committed by Gregory Maxwell
Browse files

Fixed sizeof param in silk_get_TOC. Size for memset was calculated wrong.


Signed-off-by: default avatarGregory 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.
parent bf7c1605
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment