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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 CreateDemuxer("bear_rotate_270.mp4"); | 967 CreateDemuxer("bear_rotate_270.mp4"); |
968 InitializeDemuxer(); | 968 InitializeDemuxer(); |
969 | 969 |
970 DemuxerStream* stream = demuxer_->GetStream(DemuxerStream::VIDEO); | 970 DemuxerStream* stream = demuxer_->GetStream(DemuxerStream::VIDEO); |
971 ASSERT_TRUE(stream); | 971 ASSERT_TRUE(stream); |
972 ASSERT_EQ(VIDEO_ROTATION_270, stream->video_rotation()); | 972 ASSERT_EQ(VIDEO_ROTATION_270, stream->video_rotation()); |
973 } | 973 } |
974 | 974 |
975 #endif | 975 #endif |
976 | 976 |
| 977 #if defined(USE_PROPRIETARY_CODECS) && defined(ENABLE_HEVC_DEMUXING) |
| 978 TEST_F(FFmpegDemuxerTest, HEVC_in_MP4_container) { |
| 979 CreateDemuxer("bear-hevc-frag.mp4"); |
| 980 InitializeDemuxer(); |
| 981 |
| 982 DemuxerStream* video = demuxer_->GetStream(DemuxerStream::VIDEO); |
| 983 ASSERT_TRUE(video); |
| 984 |
| 985 video->Read(NewReadCB(FROM_HERE, 3569, 66733, true)); |
| 986 message_loop_.Run(); |
| 987 |
| 988 video->Read(NewReadCB(FROM_HERE, 1042, 200200, false)); |
| 989 message_loop_.Run(); |
| 990 } |
| 991 #endif |
| 992 |
977 } // namespace media | 993 } // namespace media |
OLD | NEW |