You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Swap red and blue when decoding r210.
Originally committed as revision 20893 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		| @@ -63,9 +63,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, | ||||
|         for (w = 0; w < avctx->width; w++) { | ||||
|             uint32_t pixel = be2me_32(*src++); | ||||
|             uint16_t r, g, b; | ||||
|             r =  pixel <<  6; | ||||
|             b =  pixel <<  6; | ||||
|             g = (pixel >>  4) & 0xffc0; | ||||
|             b = (pixel >> 14) & 0xffc0; | ||||
|             r = (pixel >> 14) & 0xffc0; | ||||
|             *dst++ = r | (r >> 10); | ||||
|             *dst++ = g | (g >> 10); | ||||
|             *dst++ = b | (b >> 10); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user