• Max Kellermann's avatar
    decoder/OpusReader: return StringView · 3fae2150
    Max Kellermann authored
    Since we now don't duplicate all items, we can easily remove the 64kB
    limit from OpusReader::ReadString() and instead silently ignore and
    skip all strings which are longer than 4 kB.
    
    This fixes a tag duplication bug with Opus file containing a very long
    `METADATA_BLOCK_PICTURE` tag, which occurred because the Opus plugin
    returned false after parsing all tags, and then the MPD core fell back
    to FFmpeg which scanned the tags again.
    3fae2150
OpusReader.hxx 2.24 KB