Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: media/formats/mp4/mp4_stream_parser_unittest.cc

Issue 2368773002: MSE: Recognize "unknown duration" in ISOBMFF mvhd version 0, duration max uint32 case (Closed)
Patch Set: Address review comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/formats/mp4/mp4_stream_parser.cc ('k') | media/test/data/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp4/mp4_stream_parser_unittest.cc
diff --git a/media/formats/mp4/mp4_stream_parser_unittest.cc b/media/formats/mp4/mp4_stream_parser_unittest.cc
index caffc2395434f560d816988bd74a14579efb5871..c2168a69b58f01d204db1adea4b910a654905418 100644
--- a/media/formats/mp4/mp4_stream_parser_unittest.cc
+++ b/media/formats/mp4/mp4_stream_parser_unittest.cc
@@ -290,6 +290,17 @@ TEST_F(MP4StreamParserTest, Reinitialization) {
512));
}
+TEST_F(MP4StreamParserTest, UnknownDuration_V0_AllBitsSet) {
+ EXPECT_MEDIA_LOG(VideoCodecLog("avc1.64001F"));
+ EXPECT_MEDIA_LOG(AudioCodecLog("mp4a.40.2"));
+ InitializeParser();
+ // 32 bit duration field in mvhd box, all bits set.
+ ParseMP4File(
+ "bear-1280x720-av_frag-initsegment-mvhd_version_0-mvhd_duration_bits_all_"
+ "set.mp4",
+ 512);
+}
+
TEST_F(MP4StreamParserTest, MPEG2_AAC_LC) {
InSequence s;
std::set<int> audio_object_types;
« no previous file with comments | « media/formats/mp4/mp4_stream_parser.cc ('k') | media/test/data/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698