Skip to content

Add ability to skip processing vorbis comments #112

@bahusoid

Description

@bahusoid

I'm trying to play Vorbis files on an MP3 player with only 1 MB of memory available for decoding. Most files play fine, except those with large comments section (files with embedded album art). It fails right on attempt to open stream with ov_open_callbacks.

At this stage, all required metadata is already obtained, so ideally, I'd like to skip processing the comments section completely and load only the audio packets. Is there an easy way to achieve this?

From what I can see, the _fetch_headers function needs to be modified to support this feature. However, it's quite complex for me to understand. It's not as simple as dropping _vorbis_unpack_comment, as I encountered an Out of Memory exception before it's called inside:

ogg_stream_pagein(&vf->os,og_ptr);

Stacktrace:
image

Any help would be really appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions