Remove adding a constant value to each pixel to make it opaque.
Unified · Split
| @@ -295,7 +295,7 @@ x11grab_read_header(AVFormatContext *s1) · 294 unmodified lines | ||
| 295 | 295 | } |
| 296 | 296 | break; |
| 297 | 297 | case 32: |
| 298 | − input_pixfmt = PIX_FMT_RGB32; | |
| 298 | + input_pixfmt = PIX_FMT_0RGB32; | |
| 299 | 299 | break; |
| 300 | 300 | default: |
| 301 | 301 | 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) · 237 unmodified lines | ||
| 539 | 539 | av_log (s1, AV_LOG_INFO, "XGetZPixmap() failed\n"); |
| 540 | 540 | } |
| 541 | 541 | } |
| 542 | − if (image->bits_per_pixel == 32) | |
| 543 | − XAddPixel(image, 0xFF000000); | |
| 544 | 542 | |
| 545 | 543 | if (s->draw_mouse) { |
| 546 | 544 | paint_mouse_pointer(image, s); |