Skip to content
Snippets Groups Projects
Commit 2e7feb51 authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Make opus_decode() reject crazy decode_fec values.

parent d32f9487
No related branches found
No related tags found
No related merge requests found
......@@ -633,6 +633,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data,
int tot_offset;
/* 48 x 2.5 ms = 120 ms */
short size[48];
if (decode_fec<0 || decode_fec>1)return OPUS_BAD_ARG;
if (len==0 || data==NULL)
return opus_decode_frame(st, NULL, 0, pcm, frame_size, 0);
else if (len<0)
......
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