mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-14 06:32:33 +00:00
MP4: Remove AtomReader::position()
This commit is contained in:
parent
5f5ed69dab
commit
c930544eb4
3 changed files with 2 additions and 6 deletions
|
@ -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()?;
|
||||
|
|
|
@ -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()?;
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue