- fix invalid memory access

This commit is contained in:
Dmytro Bogovych 2020-07-06 13:34:42 +03:00
parent 328ae8d5b5
commit 7ca48b4fe2
1 changed files with 1 additions and 1 deletions

View File

@ -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