Skip to content

[asrc_pair] Fix dst_left wrap around bug#2

Open
wonbinbk wants to merge 1 commit into
nxp-imx:nxp/masterfrom
wonbinbk:nxp/master
Open

[asrc_pair] Fix dst_left wrap around bug#2
wonbinbk wants to merge 1 commit into
nxp-imx:nxp/masterfrom
wonbinbk:nxp/master

Conversation

@wonbinbk
Copy link
Copy Markdown

@wonbinbk wonbinbk commented Dec 2, 2025

src_left & dst_left in asrc_pair_convert_s16 are unsigned int. They are decreased in every loop and could wrap around into large unsigned int. That would subsequently mess with the check below.

src_left & dst_left in asrc_pair_convert_s16 are unsigned int. They are
decreased in every loop and could wrap around into large unsigned int.
That would subsequently mess with the check below.

Signed-off-by: Thai Phan <thai.phan@garmin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants