From 17436190ae6acc47791a9721718ca3bb71193843 Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Sat, 28 Oct 2023 15:17:02 +0300 Subject: [PATCH] cin: remove transparent image fix for ffmpeg --- src/client/cl_cin.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/client/cl_cin.c b/src/client/cl_cin.c index 25361768..bff4dda7 100644 --- a/src/client/cl_cin.c +++ b/src/client/cl_cin.c @@ -649,7 +649,7 @@ SCR_ReadNextFrame(void) static byte * SCR_ReadNextAVFrame(void) { - size_t count, i; + size_t count; byte *buffer; count = cin.height * cin.width * cin.color_bits / 8; @@ -667,12 +667,6 @@ SCR_ReadNextAVFrame(void) cin.av_video->video_frame_size, cin.av_video->video_timestamp); - /* force untransparent image show */ - for (i=0; i < count; i += 4) - { - buffer[i + 3] = 255; - } - if (cin.s_channels > 0) { S_RawSamples(cin.av_video->audio_frame_size / (cin.s_width * cin.s_channels),