Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MpegSplitter: skip suspicious packages when calculating bitrate

  • Loading branch information...
commit 767603a0b35bb135bf1fc2b4a37c487aac9264ae 1 parent 78cb391
@v0lt v0lt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/filters/parser/MpegSplitter/MpegSplitterFile.cpp
View
2  src/filters/parser/MpegSplitter/MpegSplitterFile.cpp
@@ -385,7 +385,7 @@ HRESULT CMpegSplitterFile::SearchStreams(__int64 start, __int64 stop, IAsyncRead
}
} else if ((b >= 0xbd && b < 0xf0) || (b == 0xfd)) { // pes packet
peshdr h;
- if (!Read(h, b)) {
+ if (!Read(h, b) || !h.len) {
continue;
}
Please sign in to comment.
Something went wrong with that request. Please try again.