mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-18 10:02:12 +00:00
cin: remove transparent image fix for ffmpeg
This commit is contained in:
parent
00dcd5952b
commit
17436190ae
1 changed files with 1 additions and 7 deletions
|
@ -649,7 +649,7 @@ SCR_ReadNextFrame(void)
|
||||||
static byte *
|
static byte *
|
||||||
SCR_ReadNextAVFrame(void)
|
SCR_ReadNextAVFrame(void)
|
||||||
{
|
{
|
||||||
size_t count, i;
|
size_t count;
|
||||||
byte *buffer;
|
byte *buffer;
|
||||||
|
|
||||||
count = cin.height * cin.width * cin.color_bits / 8;
|
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_frame_size,
|
||||||
cin.av_video->video_timestamp);
|
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)
|
if (cin.s_channels > 0)
|
||||||
{
|
{
|
||||||
S_RawSamples(cin.av_video->audio_frame_size / (cin.s_width * cin.s_channels),
|
S_RawSamples(cin.av_video->audio_frame_size / (cin.s_width * cin.s_channels),
|
||||||
|
|
Loading…
Reference in a new issue