Commit 8ce8e351 by wingyippp

new int64_t[4] after check mSeekTable supported

parent 03ba1c9a
Showing with 1 additions and 1 deletions
...@@ -439,10 +439,10 @@ size_t FLACParser::readBuffer(void *output, size_t output_size) { ...@@ -439,10 +439,10 @@ size_t FLACParser::readBuffer(void *output, size_t output_size) {
} }
int64_t* FLACParser::getSeekPositions(int64_t timeUs) { int64_t* FLACParser::getSeekPositions(int64_t timeUs) {
int64_t *result = new int64_t[4];
if (!mSeekTable) { if (!mSeekTable) {
return NULL; return NULL;
} }
int64_t *result = new int64_t[4];
int64_t sample = (timeUs * getSampleRate()) / 1000000LL; int64_t sample = (timeUs * getSampleRate()) / 1000000LL;
if (sample >= getTotalSamples()) { if (sample >= getTotalSamples()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment