]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_video_libavw.c
Fix a typo in DrawQ_RotPic which broke it badly.
[xonotic/darkplaces.git] / cl_video_libavw.c
index 206b9c6998ad9c8a4de8faa7940db9f5f74765ee..7924127a1def8d555c00a471188a458e0545f608 100644 (file)
@@ -260,13 +260,13 @@ static void *LibAvW_OpenVideo(clvideo_t *video, char *filename, const char **err
 
        // 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);