Skip to content

Commit

Permalink
fix: add warning if teletext data length is bad
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Apr 21, 2024
1 parent 97aaad3 commit 7d1aef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packager/media/formats/mp2t/es_parser_teletext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ bool EsParserTeletext::ParseInternal(const uint8_t* data,
RCHECK(reader.ReadBits(8, &data_unit_length));

if (data_unit_length != 44) {
// Don't log an error, since this is pretty common case.
// LOG(ERROR) << "Bad Teletext data length";
// Don't continue parsing the rest of the data if length is wrong.
LOG(WARNING) << "Bad Teletext data length";
break;
}

Expand Down

0 comments on commit 7d1aef2

Please sign in to comment.