[vlc-commits] fb: fix palette size (4 channels and not 8)

Rémi Duraffort git at videolan.org
Sun Jan 19 18:12:54 CET 2014


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jan 19 18:10:11 2014 +0100| [7ef85b9e804b0f2786797a39eeaec72ef81e8a8e] | committer: Rémi Duraffort

fb: fix palette size (4 channels and not 8)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ef85b9e804b0f2786797a39eeaec72ef81e8a8e
---

 modules/video_output/fb.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/fb.c b/modules/video_output/fb.c
index 8b90025..06555f4 100644
--- a/modules/video_output/fb.c
+++ b/modules/video_output/fb.c
@@ -591,7 +591,7 @@ static int OpenDisplay(vout_display_t *vd, bool force_resolution)
 
     switch (sys->var_info.bits_per_pixel) {
     case 8:
-        sys->palette = malloc(8 * 256 * sizeof(uint16_t));
+        sys->palette = malloc(4 * 256 * sizeof(uint16_t));
         if (!sys->palette) {
             /* Restore fb config */
             ioctl(sys->fd, FBIOPUT_VSCREENINFO, &sys->old_info);



More information about the vlc-commits mailing list