]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_video_jamdecode.c
funny feature: cl_lerpexcess
[xonotic/darkplaces.git] / cl_video_jamdecode.c
index 05650016f9c523fd4d0449993bab8bc7bcca75a4..a652dbc221734955ef5480e630fb9ecd1f5da783 100644 (file)
@@ -250,7 +250,7 @@ readframe:
                {
                        compsize = LittleLong(*(frameHead + 8)) - 16;
                        outsize = LittleLong(*(frameHead + 12));
-                       if (compsize < 0 || compsize > s->framesize || outsize < 0 || outsize > s->framesize)
+                       if (compsize > s->framesize || outsize > s->framesize)
                                s->error = JAMDECODEERROR_BAD_FRAME_HEADER;
                        else if (FS_Read(s->file, s->compressed, compsize))
                        {
@@ -352,4 +352,4 @@ readframe:
        else
                s->error = DPVSIMPLEDECODEERROR_EOF;
        return s->error;
-}
\ No newline at end of file
+}