diff options
author | cenzhanquan1 <[email protected]> | 2025-10-20 12:04:01 +0800 |
---|---|---|
committer | cenzhanquan1 <[email protected]> | 2025-10-23 14:42:50 +0000 |
commit | 1120b3db302165d7ed40df1473e6ae84db61c0f8 (patch) | |
tree | dd6513cbaba978a6588b4658887c6e70d1728bc3 /tests/ref/fate/filter-mpdecimate | |
parent | 0eb572f080176151154380b17335bbb96ceba9db (diff) |
Previously, the LC3 encoder only accepted planar float (AV_SAMPLE_FMT_FLTP).
This change extends support to packed float (AV_SAMPLE_FMT_FLT) by properly
handling channel layout and sample stride.
The pcm data pointer and stride are now calculated based on the sample
format: for planar, use frame->data[ch]; for packed, use frame->data[0]
with channel offset. The stride is set to 1 for planar and number of
channels for packed layout.
This enables encoding from common packed audio sources without requiring
a prior planar conversion, improving usability and efficiency.
Signed-off-by: cenzhanquan1 <[email protected]>
Diffstat (limited to 'tests/ref/fate/filter-mpdecimate')
0 files changed, 0 insertions, 0 deletions