- fix invalid memory access
This commit is contained in:
parent
328ae8d5b5
commit
7ca48b4fe2
|
|
@ -229,7 +229,7 @@ int EVSCodec::decode(const void* input, int input_length, void* output, int outp
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
// Skip CMR byte
|
// Skip CMR byte
|
||||||
buffer = std::string(reinterpret_cast<const char*>(input) + 1, input_length);
|
buffer = std::string(reinterpret_cast<const char*>(input) + 1, input_length-1);
|
||||||
|
|
||||||
|
|
||||||
// Output buffer for 48 KHz
|
// Output buffer for 48 KHz
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue