// allocate stream structure
s = (jamdecodestream_t *)Z_Malloc(sizeof(jamdecodestream_t));
memset(s, 0, sizeof(jamdecodestream_t));
- s->sndchan = -1;
if (s == NULL)
{
*errorstring = "unable to allocate memory for stream info structure";
return NULL;
}
+ s->sndchan = -1;
// open file
s->file = FS_OpenVirtualFile(filename, true);
#endif
}
return 0;
-}
\ No newline at end of file
+}
// allocate stream
s = (libavwstream_t *)Z_Malloc(sizeof(libavwstream_t));
- s->sndchan = -1;
- memset(s, 0, sizeof(libavwstream_t));
if (s == NULL)
{
*errorstring = "unable to allocate memory for stream info structure";
return NULL;
}
+ memset(s, 0, sizeof(libavwstream_t));
+ s->sndchan = -1;
// open file
s->file = FS_OpenVirtualFile(filename, true);