Fix stray calculation in PGS decoder

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=182183184
This commit is contained in:
olly 2018-01-17 02:11:55 -08:00 committed by Oliver Woodman
parent 3919843db2
commit 0708aa87ba

View File

@ -148,7 +148,7 @@ public final class PgsDecoder extends SimpleSubtitleDecoder {
if (sectionLength < 7) {
return;
}
int totalLength = buffer.readUnsignedInt24() - 4;
int totalLength = buffer.readUnsignedInt24();
if (totalLength < 4) {
return;
}