[prev in list] [next in list] [prev in thread] [next in thread]
List: xine-cvslog
Subject: [xine-cvs] =?utf-8?q?HG=3A_xine-lib-1=2E2=3A_video=5Fout=5Fopengl?= =?utf-8?q?2=3A_black_fill_new_bu
From: Torsten_Jager <t.jager () gmx ! de>
Date: 2013-02-21 20:30:51
Message-ID: 31d88870e54d3fbd1917.1361477784 () hg ! debian ! org
[Download RAW message or body]
# HG changeset patch
# User Torsten Jager <t.jager@gmx.de>
# Date 1361477784 -7200
# Node ID 31d88870e54d3fbd19174cfc479254dc593bc5d4
# Branch default
# Parent f2b6bf35b62d39f21f50c34613021cd2d3828c65
video_out_opengl2: black fill new buffer
This fixes dark green edges.
diff --git a/src/video_out/video_out_opengl2.c b/src/video_out/video_out_opengl2.c
--- a/src/video_out/video_out_opengl2.c
+++ b/src/video_out/video_out_opengl2.c
@@ -769,8 +769,10 @@
frame->vo_frame.pitches[1] = ((width + 15) & ~15) >> 1;
frame->vo_frame.pitches[2] = ((width + 15) & ~15) >> 1;
frame->vo_frame.base[0] = av_mallocz (frame->vo_frame.pitches[0] * height);
- frame->vo_frame.base[1] = av_mallocz (frame->vo_frame.pitches[1] * ((height+1)/2));
- frame->vo_frame.base[2] = av_mallocz (frame->vo_frame.pitches[2] * ((height+1)/2));
+ frame->vo_frame.base[1] = av_malloc (frame->vo_frame.pitches[1] * ((height+1)/2));
+ frame->vo_frame.base[2] = av_malloc (frame->vo_frame.pitches[2] * ((height+1)/2));
+ memset (frame->vo_frame.base[1], 128, frame->vo_frame.pitches[1] * ((height+1)/2));
+ memset (frame->vo_frame.base[2], 128, frame->vo_frame.pitches[2] * ((height+1)/2));
} else if (format == XINE_IMGFMT_YUY2){
frame->vo_frame.pitches[0] = ((width + 15) & ~15) << 1;
frame->vo_frame.base[0] = av_mallocz (frame->vo_frame.pitches[0] * height);
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic