Closed sile closed 2 years ago
Thanks for the PR! I've looked into this and can see that the change was made to empty packets instead of nullopt, but I would like to confirm with the author that it is intentional and that the docs should be updated instead. @astorus-goog would you be able to take a look?
Hi @sile, thank you for bringing this to our attention. It looks like the doc should be updated but the implementation is correct. Since nullopt is meant to signify a recoverable error it should not be used in this case. We will release a fix for the documentation shortly.
I see. Thank you for your response!
Seeing lyra_encoder.h (see code block below), the Encode method seems to return
nullopt
if DTX is enabled and the input data contains only silence (noise). However, the current implementation returns an empty vector in the case. This PR fixes the implementation to align with the specification (i.e., the doc in the header file).Feel free to close this PR if the current implementation is corrent and the doc should be modified.