comparison ffv1.c @ 11945:1acf2841dc5f libavcodec

Set an opaque alpha value when decoding rgba ffv1. Patch by Thad Ward coderjoe69¢šyahoo”ėcom
author benoit
date Thu, 24 Jun 2010 15:22:33 +0000
parents 7dd2a45249a9
children 3dbbf18d4905
comparison
equal deleted inserted replaced
11944:052b9c58ccc4 11945:1acf2841dc5f
955 r -= 0x100; 955 r -= 0x100;
956 g -= (b + r)>>2; 956 g -= (b + r)>>2;
957 b += g; 957 b += g;
958 r += g; 958 r += g;
959 959
960 src[x + stride*y]= b + (g<<8) + (r<<16); 960 src[x + stride*y]= b + (g<<8) + (r<<16) + (0xFF<<24);
961 } 961 }
962 } 962 }
963 } 963 }
964 964
965 static int read_quant_table(RangeCoder *c, int16_t *quant_table, int scale){ 965 static int read_quant_table(RangeCoder *c, int16_t *quant_table, int scale){