xiph / opus

Modern audio compression for the internet.
https://opus-codec.org/
Other
2.31k stars 619 forks source link

Bug: The decoded dred_offset < 0 #352

Open flylvyi2000 opened 4 months ago

flylvyi2000 commented 4 months ago

Hi, I tried the DRED with opus_demo and found the the decoded dred_offset < 0 sometimes. In my understanding, the dred_offset should never be less than zero.

The command line is: "./opus_demo voip 16000 1 48000 -loss 50 -dec_complexity 6 -dred 50 speech.pcm speech_out.pcm" I print the dred_offset:

企业微信截图_da5f9c0a-43a9-4a8c-a7eb-841a14629cf1
jmvalin commented 4 months ago

IIRC the DRED offset can actually be negative when DRED data gets omitted during silence.