Skip to content

Commit

Permalink
Allow only one subtitle per PID
Browse files Browse the repository at this point in the history
  • Loading branch information
tresvecesseis committed Sep 15, 2016
1 parent b6ea350 commit 0834969
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ private EsInfo readEsInfo(ParsableByteArray data, int length) {
} else if (descriptorTag == TS_PMT_DESC_ISO639_LANG) {
language = new String(data.data, data.getPosition(), 3).trim();
streamSubType = data.data[data.getPosition() + 3];
} else if (descriptorTag == TS_PMT_DESC_DVBSUBS) {
} else if (descriptorTag == TS_PMT_DESC_DVBSUBS && descriptorLength == 8) { // we only support one subtitle service per PID
streamType = TS_STREAM_TYPE_DVBSUBS;
language = new String(data.data, data.getPosition(), 3).trim();
streamSubType = data.data[data.getPosition() + 3];
Expand Down

0 comments on commit 0834969

Please sign in to comment.