]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cap_ogg.c
video capture: add the missing 32768.0f factor
[xonotic/darkplaces.git] / cap_ogg.c
index 609947ca3d02a32fc6f23b7eff8daec98c18ef62..166ead0138cc2b82ef4043d1eb9ec14d12f806ca 100644 (file)
--- a/cap_ogg.c
+++ b/cap_ogg.c
@@ -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);