mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Set Bethesda VID palette opaque.
This commit is contained in:
parent
0c5fd6372e
commit
f98722443f
@ -52,7 +52,7 @@ static void set_palette(AVFrame * frame, const uint8_t * palette_buffer)
|
|||||||
uint32_t * palette = (uint32_t *)frame->data[1];
|
uint32_t * palette = (uint32_t *)frame->data[1];
|
||||||
int a;
|
int a;
|
||||||
for(a = 0; a < 256; a++){
|
for(a = 0; a < 256; a++){
|
||||||
palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4;
|
palette[a] = 0xFF << 24 | AV_RB24(&palette_buffer[a * 3]) * 4;
|
||||||
}
|
}
|
||||||
frame->palette_has_changed = 1;
|
frame->palette_has_changed = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user