Index: media/formats/mp4/box_reader.cc |
diff --git a/media/formats/mp4/box_reader.cc b/media/formats/mp4/box_reader.cc |
index 7910217c6bdc767fa9d527104384c57df29791df..fd81d13751101796504534ccd9ddf048e4041e55 100644 |
--- a/media/formats/mp4/box_reader.cc |
+++ b/media/formats/mp4/box_reader.cc |
@@ -183,6 +183,12 @@ bool BoxReader::ScanChildren() { |
return !err && pos() == size(); |
} |
+bool BoxReader::HasChild(Box* child) { |
+ DCHECK(scanned_); |
+ DCHECK(child); |
+ return children_.count(child->BoxType()) > 0; |
+} |
+ |
bool BoxReader::ReadChild(Box* child) { |
DCHECK(scanned_); |
FourCC child_type = child->BoxType(); |