Skip to content

Commit

Permalink
Merge pull request #846 from AOMediaCodec/sunghee-hwang-patch-1
Browse files Browse the repository at this point in the history
Fix #626, clarification on the meaning of discarding a sample
  • Loading branch information
sunghee-hwang authored Jul 14, 2024
2 parents 7e80ea1 + 72905f4 commit 79becc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ For a given coded [=Audio Substream=],
- If an [=Audio Frame OBU=] has its [=num_samples_to_trim_at_start=] field set to a non-zero value N, the decoder SHALL discard the first N audio samples.
- If an [=Audio Frame OBU=] has its [=num_samples_to_trim_at_end=] field set to a non-zero value N, the decoder SHALL discard the last N audio samples.

NOTE: Because of possible coding dependencies, discarding a sample can sometimes mean decoding the entire audio frame.
NOTE: Because of possible coding dependencies, discarding a sample can sometimes mean still needing to decode the entire audio frame.

- For a given [=Audio Frame OBU=], the sum of [=num_samples_to_trim_at_start=] and [=num_samples_to_trim_at_end=] SHALL be less than or equal to the number of samples in the [=Audio Frame OBU=] (i.e., [=num_samples_per_frame=]).

Expand Down

0 comments on commit 79becc8

Please sign in to comment.