From 77e6d75bddfa29e812eba4905e7535b03146da0c Mon Sep 17 00:00:00 2001 From: olly Date: Fri, 31 Mar 2017 06:18:13 -0700 Subject: [PATCH] Fix FLV parser to skip metadata we're not interested in Issue: #2634 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=151816597 --- .../exoplayer2/extractor/flv/ScriptTagPayloadReader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/extractor/flv/ScriptTagPayloadReader.java b/library/core/src/main/java/com/google/android/exoplayer2/extractor/flv/ScriptTagPayloadReader.java index 7229d96300..1a4f8f3e88 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/extractor/flv/ScriptTagPayloadReader.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/extractor/flv/ScriptTagPayloadReader.java @@ -80,8 +80,8 @@ import java.util.Map; } 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 metadata = readAmfEcmaArray(data);