Merge pull request #1979 from vitekn/dev-v2
Fix NPE in TsExtractor when ElementaryStreamReaderFactory returns null
This commit is contained in:
commit
e4bafd964d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user