-
Notifications
You must be signed in to change notification settings - Fork 226
Description
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:
Line 391 in 84c0236
| ogg_stream_pagein(&vf->os,og_ptr); |
Any help would be really appreciated.
