mirror of
https://github.com/taglib/taglib.git
synced 2025-12-21 00:32:50 -05:00
Merge 7db76720bb into fbbead3efd
This commit is contained in:
@ -103,7 +103,7 @@ bool MPEG::File::isSupported(IOStream *stream)
|
||||
const ByteVector buffer = Utils::readHeader(stream, bufferSize(), true, &headerOffset);
|
||||
|
||||
if(buffer.isEmpty())
|
||||
return false;
|
||||
return false;
|
||||
|
||||
const offset_t originalPosition = stream->tell();
|
||||
AdapterFile file(stream);
|
||||
@ -449,6 +449,9 @@ offset_t MPEG::File::lastFrameOffset()
|
||||
else
|
||||
position = length();
|
||||
|
||||
if (position > length()) //if the file is incomplete
|
||||
position = length();
|
||||
|
||||
return previousFrameOffset(position);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user