U12: ec-truehd remove push (duplicate of decode_access_unit; no caller in edith, tools or tests)
Browse files at this commit9ec72657ab65a9eb7fb0197233eb6abfb7c9f909Parent: 68c61cb1 changed file +0 -5
crates/ec-truehd/src/sync.rsmodified+0 -5
| @@ -337,11 +337,6 @@ impl TrueHdDecoder { | |||
| 337 | /// One access unit in; one frame of the highest presentation out — | 337 | /// One access unit in; one frame of the highest presentation out — |
| 338 | /// `None` until the first major sync and every substream's first | 338 | /// `None` until the first major sync and every substream's first |
| 339 | /// restart header have been seen. | 339 | /// restart header have been seen. |
| 340 | - pub fn push(&mut self, data: &[u8]) -> Result<Option<AudioFrame>> { | ||
| 341 | - self.decode_access_unit(data) | ||
| 342 | - } | ||
| 343 | - | ||
| 344 | - /// See [`TrueHdDecoder::push`]. | ||
| 345 | pub fn decode_access_unit(&mut self, data: &[u8]) -> Result<Option<AudioFrame>> { | 340 | pub fn decode_access_unit(&mut self, data: &[u8]) -> Result<Option<AudioFrame>> { |
| 346 | let header = AccessUnitHeader::parse(data, self.substream_count)?; | 341 | let header = AccessUnitHeader::parse(data, self.substream_count)?; |
| 347 | self.substream_count = header.substreams.len(); | 342 | self.substream_count = header.substreams.len(); |