Commit 674653ff authored by Josh Coalson's avatar Josh Coalson
Browse files

fix bug where pos could move to before the beginning of the file

parent 10cffdd2
......@@ -453,6 +453,8 @@ bool seek_to_absolute_sample_(FLAC__FileDecoder *decoder, long filesize, uint64
}
if(pos < l)
pos = l;
if(pos < 0)
pos = 0;
last_frame_sample = this_frame_sample;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment