You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Use the correct pix_fmt for 32bit x11grab.
Remove adding a constant value to each pixel to make it opaque.
This commit is contained in:
		| @@ -295,7 +295,7 @@ x11grab_read_header(AVFormatContext *s1) | |||||||
|         } |         } | ||||||
|         break; |         break; | ||||||
|     case 32: |     case 32: | ||||||
|         input_pixfmt = PIX_FMT_RGB32; |         input_pixfmt = PIX_FMT_0RGB32; | ||||||
|         break; |         break; | ||||||
|     default: |     default: | ||||||
|         av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel); |         av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel); | ||||||
| @@ -539,8 +539,6 @@ x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt) | |||||||
|             av_log (s1, AV_LOG_INFO, "XGetZPixmap() failed\n"); |             av_log (s1, AV_LOG_INFO, "XGetZPixmap() failed\n"); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|     if (image->bits_per_pixel == 32) |  | ||||||
|         XAddPixel(image, 0xFF000000); |  | ||||||
|  |  | ||||||
|     if (s->draw_mouse) { |     if (s->draw_mouse) { | ||||||
|         paint_mouse_pointer(image, s); |         paint_mouse_pointer(image, s); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user