We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a800931 commit b5cb20bCopy full SHA for b5cb20b
taglib/mpeg/mpegfile.cpp
@@ -110,7 +110,7 @@ bool MPEG::File::isSupported(IOStream *stream)
110
111
if(buffer.isEmpty())
112
return false;
113
-
+
114
const long originalPosition = stream->tell();
115
AdapterFile file(stream);
116
@@ -466,6 +466,9 @@ long MPEG::File::lastFrameOffset()
466
else
467
position = length();
468
469
+ if (position >= length()) //if the file is incomplete
470
+ position = length();
471
472
return previousFrameOffset(position);
473
}
474
0 commit comments