MP4: Remove AtomReader::position()

This commit is contained in:
Serial 2023-03-13 15:36:09 -04:00 committed by Alex
parent 5f5ed69dab
commit c930544eb4
3 changed files with 2 additions and 6 deletions

View file

@ -163,7 +163,7 @@ where
// An atom can contain multiple data atoms
let mut ret = Vec::new();
let to_read = (atom_info.start + atom_info.len) - reader.position()?;
let to_read = (atom_info.start + atom_info.len) - reader.stream_position()?;
let mut pos = 0;
while pos < to_read {
let data_atom = reader.next()?;

View file

@ -23,7 +23,7 @@ where
verify_mp4(&mut reader)?;
let moov = Moov::find(&mut reader)?;
let pos = reader.position()?;
let pos = reader.stream_position()?;
reader.rewind()?;

View file

@ -73,10 +73,6 @@ where
AtomInfo::read(self, self.remaining_size)
}
pub(super) fn position(&mut self) -> std::io::Result<u64> {
self.reader.stream_position()
}
pub(super) fn into_inner(self) -> R {
self.reader
}