summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTorsten Jager <t.jager@gmx.de>2013-02-21 22:16:24 +0200
committerTorsten Jager <t.jager@gmx.de>2013-02-21 22:16:24 +0200
commitf2a00e5061170448461ad92b4b7bceafc917efe4 (patch)
tree77385c8e9f967f59ceec56d0f2a69cd1de2c16cf /src
parent787ed5780c3569ba32ab9c1cc0d77638af7acdcc (diff)
downloadxine-lib-f2a00e5061170448461ad92b4b7bceafc917efe4.tar.gz
xine-lib-f2a00e5061170448461ad92b4b7bceafc917efe4.tar.bz2
video_out_opengl2: black fill new buffer
This fixes dark green edges.
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_opengl2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_out/video_out_opengl2.c b/src/video_out/video_out_opengl2.c
index 8b2c0f305..cce35e8d8 100644
--- a/src/video_out/video_out_opengl2.c
+++ b/src/video_out/video_out_opengl2.c
@@ -769,8 +769,10 @@ static void opengl2_update_frame_format( vo_driver_t *this_gen, vo_frame_t *fram
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);