[NON-BE] Resolve #1261 "MSAN in MASA EXT metadata delay buffer indexing when starting with bad frames and no_delay_cmp"
requested to merge 1261-msan-in-masa-ext-metadata-delay-buffer-indexing-when-starting-with-bad-frames-and-no_delay_cmp into main
- Related issues: #1261 (closed)
- Requested reviewers:
Reason why this change is needed
When no_delay_cmp
is active the MASA metadata in EXT output is delayed by 2 or 3 subframes to synchronize it with the audio. If the signal starts with bad frames, the metadata filewriter is requested to use 0 delay. When the first good frame arrives, this results into a negative index in the delay buffer.
Description of the change
Use correct delay value (for the output metadata) also for the initial bad frames when writing to EXT output.
Affected operating points
- Bitstreams not affected
- Affects MASA and OMASA format decoder metadata output into EXT when
no_delay_cmp
is active and VOIP is used.
Related to #1261 (closed)