Skip to content

Commit

Permalink
Fix FLV parser to skip metadata we're not interested in
Browse files Browse the repository at this point in the history
Issue: #2634

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=151816597
  • Loading branch information
ojw28 committed Mar 31, 2017
1 parent f7fff0d commit 77e6d75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ protected void parsePayload(ParsableByteArray data, long timeUs) throws ParserEx
}
int type = readAmfType(data);
if (type != AMF_TYPE_ECMA_ARRAY) {
// Should never happen.
throw new ParserException();
// We're not interested in this metadata.
return;
}
// Set the duration to the value contained in the metadata, if present.
Map<String, Object> metadata = readAmfEcmaArray(data);
Expand Down

0 comments on commit 77e6d75

Please sign in to comment.