diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-12 11:43:52 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-12 11:43:52 +0100 |
commit | a1fc4db0fe834e9caa06aa1ebb1cb5397f0b61a3 (patch) | |
tree | ff397565d9ca18c38ae61f35d8427710e41b195f /src/video_out/yuv2rgb_mmx.c | |
parent | b9c4575c8ca6a0ba36620ea446b59ad84c196a2d (diff) | |
download | xine-lib-a1fc4db0fe834e9caa06aa1ebb1cb5397f0b61a3.tar.gz xine-lib-a1fc4db0fe834e9caa06aa1ebb1cb5397f0b61a3.tar.bz2 |
Use av_mallocz from libavutil rather than xine_xmalloc_aligned for allocating memory.
Diffstat (limited to 'src/video_out/yuv2rgb_mmx.c')
-rw-r--r-- | src/video_out/yuv2rgb_mmx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_out/yuv2rgb_mmx.c b/src/video_out/yuv2rgb_mmx.c index 20a9b5a00..3d834d672 100644 --- a/src/video_out/yuv2rgb_mmx.c +++ b/src/video_out/yuv2rgb_mmx.c @@ -31,6 +31,9 @@ #include <string.h> #include <inttypes.h> +/* libavutil from FFmpeg */ +#include <mem.h> + #include "yuv2rgb.h" #include "xineutils.h" @@ -70,7 +73,7 @@ void mmx_yuv2rgb_set_csc_levels(yuv2rgb_factory_t *this, /* 'table_mmx' is 64bit aligned for better performance */ if (this->table_mmx == NULL) { - this->table_mmx = xine_xmalloc_aligned (8, sizeof(mmx_csc_t), &this->table_mmx_base); + this->table_mmx = av_mallocz(sizeof(mmx_csc_t)); } if( brightness <= 16 ) { |