X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cap_ogg.c;h=e9abc7ae573fa143a1be388d64f3a64466451291;hb=33fb1d11372ce3b1beab0407015535247d6bff14;hp=a4913aeb332a05d2eedbae1a5dd4642daade7999;hpb=e08020e5063e31db4a7be2f1845fe25933419a7a;p=xonotic%2Fdarkplaces.git diff --git a/cap_ogg.c b/cap_ogg.c index a4913aeb..e9abc7ae 100644 --- a/cap_ogg.c +++ b/cap_ogg.c @@ -914,14 +914,14 @@ static void SCR_CaptureVideo_Ogg_SoundFrame(const portable_sampleframe_t *paintb ogg_packet pt; int *map = mapping[bound(1, cls.capturevideo.soundchannels, 8) - 1]; - vorbis_buffer = qvorbis_analysis_buffer(&format->vd, length); + vorbis_buffer = qvorbis_analysis_buffer(&format->vd, (int)length); for(j = 0; j < cls.capturevideo.soundchannels; ++j) { float *b = vorbis_buffer[map[j]]; for(i = 0; i < length; ++i) b[i] = paintbuffer[i].sample[j]; } - qvorbis_analysis_wrote(&format->vd, length); + qvorbis_analysis_wrote(&format->vd, (int)length); while(qvorbis_analysis_blockout(&format->vd, &format->vb) == 1) {