Commit e4bafd96 by Santiago Seifert Committed by GitHub

Merge pull request #1979 from vitekn/dev-v2

Fix NPE in TsExtractor when ElementaryStreamReaderFactory returns null
parents 924a0417 b2222f8c
......@@ -467,7 +467,9 @@ public final class TsExtractor implements Extractor {
pesPayloadReader = id3Reader;
} else {
pesPayloadReader = streamReaderFactory.createStreamReader(streamType, esInfo);
pesPayloadReader.init(output, new TrackIdGenerator(trackId, MAX_PID_PLUS_ONE));
if (pesPayloadReader != null) {
pesPayloadReader.init(output, new TrackIdGenerator(trackId, MAX_PID_PLUS_ONE));
}
}
if (pesPayloadReader != null) {
......
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