[Fix] Potential bug with a libvorbis segfault.
This commit is contained in:
parent
d384cb201b
commit
351ff76858
@ -46,11 +46,12 @@ static size_t ovpack_read(void* ptr, size_t size, size_t nmemb, void* datasource
|
||||
return (ssize_t) pack_read(datasource, ptr, size*nmemb);
|
||||
}
|
||||
|
||||
static int ovpack_retneg(void) { return -1; } // Must return -1.
|
||||
ov_callbacks ovcall = {
|
||||
.read_func = ovpack_read,
|
||||
.seek_func = NULL,
|
||||
.seek_func = (int(*)(void*, ogg_int64_t, int)) ovpack_retneg,
|
||||
.close_func = NULL,
|
||||
.tell_func = NULL
|
||||
.tell_func = (long(*)(void*))ovpack_retneg
|
||||
};
|
||||
|
||||
static int stream_loadBuffer(ALuint buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user