Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

return value of opus_dred_parse #385

Open
walletiger opened this issue Dec 29, 2024 · 0 comments
Open

return value of opus_dred_parse #385

walletiger opened this issue Dec 29, 2024 · 0 comments

Comments

@walletiger
Copy link

for encoder i set OPUS_SET_DRED_DURATION to 100,
while decoding stream , i set dred_input with loss frames , but the return value of opus_dred_parse sometimes smaller than dred_input , sometimes larger !!!
i dont no why ?
how can i deal with the return value smaller than input ?

/* Only decode the amount we need to fill in the gap. */
ret = opus_dred_parse(dred_dec, dred, data, len, IMIN(48000, IMAX(0, dred_input)), sampling_rate, &dred_end, 0);
printf("--------dred_input=%d, opus_dred_parse ret = %d\n", dred_input, ret);

log print:
--------dred_input=960, opus_dred_parse ret = 720
--------dred_input=960, opus_dred_parse ret = 720
--------dred_input=960, opus_dred_parse ret = 720
--------dred_input=960, opus_dred_parse ret = 720
--------dred_input=4800, opus_dred_parse ret = 4560
--------dred_input=960, opus_dred_parse ret = 720
--------dred_input=1920, opus_dred_parse ret = 2640

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

No branches or pull requests

1 participant