File ffmpeg-php-PIX.patch of Package php-ffmpeg
x
1
--- ffmpeg_frame.c.orig 2011-04-06 13:56:49.405339958 +0200
2
+++ ffmpeg_frame.c 2011-04-06 13:57:31.980589409 +0200
3
4
5
GET_FRAME_RESOURCE(getThis(), ff_frame);
6
7
- _php_convert_frame(ff_frame, PIX_FMT_RGBA32);
8
+ _php_convert_frame(ff_frame, PIX_FMT_RGB32);
9
10
return_value->value.lval = _php_get_gd_image(ff_frame->width,
11
ff_frame->height);
12
13
14
/* create a an av_frame and allocate space for it */
15
frame = avcodec_alloc_frame();
16
- avpicture_alloc((AVPicture*)frame, PIX_FMT_RGBA32, width, height);
17
+ avpicture_alloc((AVPicture*)frame, PIX_FMT_RGB32, width, height);
18
19
/* copy the gd image to the av_frame */
20
_php_gd_image_to_avframe(gd_img, frame, width, height);
21
22
/* set the ffpmeg_frame's properties */
23
ff_frame->width = width;
24
ff_frame->height = height;
25
- ff_frame->pixel_format = PIX_FMT_RGBA32;
26
+ ff_frame->pixel_format = PIX_FMT_RGB32;
27
break;
28
default:
29
zend_error(E_ERROR, "Invalid argument\n");
30