diff options
author | cenzhanquan1 <[email protected]> | 2025-10-20 14:52:24 +0800 |
---|---|---|
committer | cenzhanquan1 <[email protected]> | 2025-10-23 22:06:04 +0800 |
commit | 0eb572f080176151154380b17335bbb96ceba9db (patch) | |
tree | 3892d16dddbccbc8e38f9af8161147b54f9d8ad0 /tests/checkasm/cavsdsp.c | |
parent | cb5e201f5cb88f127ed81e4276584c7ba10bd30d (diff) |
1. Adds support for respecting the requested sample format. Previously,
the decoder always used AV_SAMPLE_FMT_FLTP. Now it checks if the
caller requested a specific format via avctx->request_sample_fmt and
honors that request when supported.
2. Improves planar/interleaved audio buffer handling. The decoding
logic now properly handles both planar and interleaved sample
formats by calculating the correct stride and buffer pointers based
on the actual sample format.
The changes include:
- Added format mapping between AVSampleFormat and lc3_pcm_format
- Implemented format selection logic in initialization.
- Updated buffer pointer calculation for planar/interleaved data.
- Maintained backward compatibility with existing behavior.
Signed-off-by: cenzhanquan1 <[email protected]>
Diffstat (limited to 'tests/checkasm/cavsdsp.c')
0 files changed, 0 insertions, 0 deletions