1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
Index: graphtft-0.2.2/imlibrenderer/dvbrenderer/mpeg2encoder.c
===================================================================
--- graphtft-0.2.2.orig/imlibrenderer/dvbrenderer/mpeg2encoder.c
+++ graphtft-0.2.2/imlibrenderer/dvbrenderer/mpeg2encoder.c
@@ -126,11 +126,11 @@ mpeg_frame mpeg_draw(UINT8* buf)
int i;
AVPicture avpsrc;
- avpicture_fill(&avpsrc, buf, PIX_FMT_RGBA32, width, height);
+ avpicture_fill(&avpsrc, buf, PIX_FMT_RGB32, width, height);
#ifndef HAVE_SWSCALE
- img_convert(&pic, PIX_FMT_YUV420P, &avpsrc, PIX_FMT_RGBA32, width, height);
+ img_convert(&pic, PIX_FMT_YUV420P, &avpsrc, PIX_FMT_RGB32, width, height);
#else
Index: graphtft-0.2.2/imlibrenderer/fbrenderer/fbrenderer.c
===================================================================
--- graphtft-0.2.2.orig/imlibrenderer/fbrenderer/fbrenderer.c
+++ graphtft-0.2.2/imlibrenderer/fbrenderer/fbrenderer.c
@@ -192,7 +192,7 @@ int FbRenderer::init(int devnum)
switch (fb_vinfo.bits_per_pixel)
{
- case 32: tell(4, "fbdevout.c: using 32 bit depth"); fb_type = PIX_FMT_RGBA32; break;
+ case 32: tell(4, "fbdevout.c: using 32 bit depth"); fb_type = PIX_FMT_RGB32; break;
case 24: tell(4, "fbdevout.c: using 24 bit depth"); fb_type = PIX_FMT_RGB24; break;
case 16: tell(4, "fbdevout.c: using 16 bit depth"); fb_type = PIX_FMT_RGB565; break;
default: tell(4, "fbdevout.c: color depth not supported -> %i bits per pixel",
|