From e9f47e34d2cc9db7670840863ffbc62a18b42f3a Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 3 Jan 2011 20:47:10 +0100 Subject: [PATCH] fix comments --- cap_lavc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cap_lavc.c b/cap_lavc.c index 79019756..988de7d9 100644 --- a/cap_lavc.c +++ b/cap_lavc.c @@ -106,8 +106,6 @@ static void SCR_CaptureVideo_Lavc_ConvertFrame_BGRA_to_YUV(AVFrame *frame) b += 4; } - // format->yuv = Z_Malloc(cls.capturevideo.width * cls.capturevideo.height + ((cls.capturevideo.width + 1) / 2) * ((cls.capturevideo.height + 1) / 2)); - if((y & 1) == 0) { for(b = cls.capturevideo.outbuffer + (h-2-y)*w*4, x = 0; x < (w+1)/2; ++x) @@ -182,6 +180,7 @@ static void SCR_CaptureVideo_Lavc_SoundFrame(const portable_sampleframe_t *paint int *map = mapping[bound(1, cls.capturevideo.soundchannels, 8) - 1]; size_t bufpos = 0; + // FIXME encode the rest of the buffer at the end of the video, filled with zeroes! while(bufpos < length) { // fill up buffer @@ -224,6 +223,7 @@ static void SCR_CaptureVideo_Lavc_SoundFrame(const portable_sampleframe_t *paint } // TODO error checking in this function +// TODO parameters in this function void SCR_CaptureVideo_Lavc_BeginVideo(void) { cls.capturevideo.format = CAPTUREVIDEOFORMAT_LAVC; @@ -330,7 +330,6 @@ void SCR_CaptureVideo_Lavc_BeginVideo(void) av_write_header(format->avf); format->buffer = Z_Malloc(format->bufsize); - format->yuv = Z_Malloc(cls.capturevideo.width * cls.capturevideo.height + ((cls.capturevideo.width + 1) / 2) * ((cls.capturevideo.height + 1) / 2) * 2); } } -- 2.39.2