forked from FFmpeg/FFmpeg
Set Bethesda VID palette opaque.
This commit is contained in:
parent
0c5fd6372e
commit
f98722443f
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ static void set_palette(AVFrame * frame, const uint8_t * palette_buffer)
|
|||
uint32_t * palette = (uint32_t *)frame->data[1];
|
||||
int 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue