]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cap_ogg.c
CSQC Getlight - added globals:
[xonotic/darkplaces.git] / cap_ogg.c
index eef3f90d6e3503b5febb2172d58ca318915a6389..166ead0138cc2b82ef4043d1eb9ec14d12f806ca 100644 (file)
--- a/cap_ogg.c
+++ b/cap_ogg.c
@@ -847,7 +847,7 @@ static void SCR_CaptureVideo_Ogg_ConvertFrame_BGRA_to_YUV(void)
                        b += 4;
                }
 
-               if((y & 1) == 0)
+               if ((y & 1) == 0 && y/2 < h/2) // if h is odd, this skips the last row
                {
                        for(b = cls.capturevideo.outbuffer + (h-2-y)*w*4, x = 0; x < w/2; ++x)
                        {
@@ -919,7 +919,7 @@ static void SCR_CaptureVideo_Ogg_SoundFrame(const portable_sampleframe_t *paintb
        {
                float *b = vorbis_buffer[map[j]];
                for(i = 0; i < length; ++i)
-                       b[i] = paintbuffer[i].sample[j] / 32768.0f;
+                       b[i] = paintbuffer[i].sample[j];
        }
        qvorbis_analysis_wrote(&format->vd, length);