diff --git a/dom/media/MP3Demuxer.cpp b/dom/media/MP3Demuxer.cpp index c898de2b39..8851798eb9 100644 --- a/dom/media/MP3Demuxer.cpp +++ b/dom/media/MP3Demuxer.cpp @@ -918,6 +918,9 @@ ID3Parser::ID3Header::Flags() const { uint32_t ID3Parser::ID3Header::Size() const { + if (!IsValid()) { + return 0; + } return mSize; }