[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_vo=5Fnone=3A_supply_?= =?utf-8?q?aligned_buffers=2E?=
From:       Torsten_Jager <t.jager () gmx ! de>
Date:       2016-09-14 17:12:11
Message-ID: 1f029881b022687047c4.1473873040 () hg ! debian ! org
[Download RAW message or body]

# HG changeset patch
# User Torsten Jager <t.jager@gmx.de>
# Date 1473873040 -7200
# Node ID 1f029881b022687047c423f58045bc370938a604
# Branch  default
# Parent  73af85b4798104fafa95dd0f19841862414fa3da
vo_none: supply aligned buffers.

diff --git a/src/video_out/video_out_none.c b/src/video_out/video_out_none.c
--- a/src/video_out/video_out_none.c
+++ b/src/video_out/video_out_none.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2000-2014 the xine project
+ * Copyright (C) 2000-2016 the xine project
  *
  * This file is part of xine, a free video player.
  *
@@ -63,7 +63,7 @@
 
 static void free_framedata(none_frame_t* frame) {
   if(frame->vo_frame.base[0]) {
-    free(frame->vo_frame.base[0]);
+    xine_free_aligned(frame->vo_frame.base[0]);
     frame->vo_frame.base[0] = NULL;
     frame->vo_frame.base[1] = NULL;
     frame->vo_frame.base[2] = NULL;
@@ -134,7 +134,7 @@
 	y_size  = frame->vo_frame.pitches[0] * height;
 	uv_size = frame->vo_frame.pitches[1] * ((height+1)/2);
 
-	frame->vo_frame.base[0] = malloc (y_size + 2*uv_size);
+	frame->vo_frame.base[0] = xine_malloc_aligned (y_size + 2*uv_size);
         if (frame->vo_frame.base[0]) {
           frame->vo_frame.base[1] = frame->vo_frame.base[0] + y_size;
           frame->vo_frame.base[2] = frame->vo_frame.base[0] + y_size + uv_size;
@@ -151,7 +151,7 @@
 
     case XINE_IMGFMT_YUY2:
       frame->vo_frame.pitches[0] = 8*((width + 3) / 4);
-      frame->vo_frame.base[0] = malloc(frame->vo_frame.pitches[0] * height);
+      frame->vo_frame.base[0] = xine_malloc_aligned(frame->vo_frame.pitches[0] * height);
       frame->vo_frame.base[1] = NULL;
       frame->vo_frame.base[2] = NULL;
       if (!frame->vo_frame.base[0]) {

------------------------------------------------------------------------------
_______________________________________________
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