OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <algorithm> | 5 #include <algorithm> |
6 #include <deque> | 6 #include <deque> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 CreateDemuxer("bear_rotate_270.mp4"); | 968 CreateDemuxer("bear_rotate_270.mp4"); |
969 InitializeDemuxer(); | 969 InitializeDemuxer(); |
970 | 970 |
971 DemuxerStream* stream = demuxer_->GetStream(DemuxerStream::VIDEO); | 971 DemuxerStream* stream = demuxer_->GetStream(DemuxerStream::VIDEO); |
972 ASSERT_TRUE(stream); | 972 ASSERT_TRUE(stream); |
973 ASSERT_EQ(VIDEO_ROTATION_270, stream->video_rotation()); | 973 ASSERT_EQ(VIDEO_ROTATION_270, stream->video_rotation()); |
974 } | 974 } |
975 | 975 |
976 #endif | 976 #endif |
977 | 977 |
| 978 #if defined(USE_PROPRIETARY_CODECS) && defined(ENABLE_HEVC_DEMUXING) |
| 979 TEST_F(FFmpegDemuxerTest, HEVC_in_MP4_container) { |
| 980 CreateDemuxer("bear-hevc-frag.mp4"); |
| 981 InitializeDemuxer(); |
| 982 |
| 983 DemuxerStream* video = demuxer_->GetStream(DemuxerStream::VIDEO); |
| 984 ASSERT_TRUE(video); |
| 985 |
| 986 video->Read(NewReadCB(FROM_HERE, 3569, 66733, true)); |
| 987 message_loop_.Run(); |
| 988 |
| 989 video->Read(NewReadCB(FROM_HERE, 1042, 200200, false)); |
| 990 message_loop_.Run(); |
| 991 } |
| 992 #endif |
| 993 |
978 } // namespace media | 994 } // namespace media |
OLD | NEW |