summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
Diffstat (limited to 'media')
-rw-r--r--media/filters/ffmpeg_demuxer_unittest.cc3
-rw-r--r--media/video/ffmpeg_video_decode_engine_unittest.cc7
2 files changed, 1 insertions, 9 deletions
diff --git a/media/filters/ffmpeg_demuxer_unittest.cc b/media/filters/ffmpeg_demuxer_unittest.cc
index 04fd6f3..c12972f 100644
--- a/media/filters/ffmpeg_demuxer_unittest.cc
+++ b/media/filters/ffmpeg_demuxer_unittest.cc
@@ -238,9 +238,6 @@ TEST_F(FFmpegDemuxerTest, Read_VideoNonZeroStart) {
// Test the start time is the first timestamp of the video and audio stream.
InitializeDemuxer(CreateDataSource("nonzero-start-time.webm"));
- const base::TimeDelta kExpectedTimestamp =
- base::TimeDelta::FromMicroseconds(396000);
-
// Attempt a read from the video stream and run the message loop until done.
scoped_refptr<DemuxerStream> video =
demuxer_->GetStream(DemuxerStream::VIDEO);
diff --git a/media/video/ffmpeg_video_decode_engine_unittest.cc b/media/video/ffmpeg_video_decode_engine_unittest.cc
index 4b46ee7..2ab4b3f 100644
--- a/media/video/ffmpeg_video_decode_engine_unittest.cc
+++ b/media/video/ffmpeg_video_decode_engine_unittest.cc
@@ -175,10 +175,6 @@ TEST_F(FFmpegVideoDecodeEngineTest, Initialize_OpenDecoderFails) {
TEST_F(FFmpegVideoDecodeEngineTest, DecodeFrame_Normal) {
Initialize();
- // We rely on FFmpeg for timestamp and duration reporting.
- const base::TimeDelta kTimestamp = base::TimeDelta::FromMicroseconds(0);
- const base::TimeDelta kDuration = base::TimeDelta::FromMicroseconds(10000);
-
// Simulate decoding a single frame.
scoped_refptr<VideoFrame> video_frame;
DecodeASingleFrame(i_frame_buffer_, &video_frame);
@@ -187,8 +183,7 @@ TEST_F(FFmpegVideoDecodeEngineTest, DecodeFrame_Normal) {
// the buffer timestamp.
ASSERT_TRUE(video_frame);
EXPECT_EQ(0, video_frame->GetTimestamp().ToInternalValue());
- EXPECT_EQ(kDuration.ToInternalValue(),
- video_frame->GetDuration().ToInternalValue());
+ EXPECT_EQ(10000, video_frame->GetDuration().ToInternalValue());
}