xiph / opus-tools

A set of tools to encode, inspect, and decode audio in the Opus format.
https://opus-codec.org/
Other
212 stars 78 forks source link

Added detection of extra packets in page containing Opus headers #54

Closed mattgwwalker closed 4 years ago

mattgwwalker commented 4 years ago

Opusinfo did not detect that there were other packets in the page containing the Opus headers. However opusfile rejects such a file with only OP_EBADHEADER as feedback.

This pull request detects such unacceptable extra packets and adds a warning to opusinfo.

Cheers,

Matthew

rillian commented 4 years ago

Good catch! I've committed a slightly-modified version, with a shorter warning message, and a longer commit message. Merged in 95d049532091f675e3622099d7b09acc776da993.

Thanks for the the submission!