quickdraw: Make the palette opaque
Additional overflow fix by Michael Niedermayer <michaelni@gmx.at>. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
This commit is contained in:
		
							parent
							
								
									da5c6a97bb
								
							
						
					
					
						commit
						d0dce15da3
					
				@ -61,7 +61,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc,
 | 
			
		||||
        bytestream2_skip(gbc, 1);
 | 
			
		||||
        b = bytestream2_get_byte(gbc);
 | 
			
		||||
        bytestream2_skip(gbc, 1);
 | 
			
		||||
        pal[idx] = (r << 16) | (g << 8) | b;
 | 
			
		||||
        pal[idx] = (0xFFU << 24) | (r << 16) | (g << 8) | b;
 | 
			
		||||
    }
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user