summaryrefslogtreecommitdiff
path: root/src/video_dec/rgb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_dec/rgb.c')
-rw-r--r--src/video_dec/rgb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_dec/rgb.c b/src/video_dec/rgb.c
index 9c8409e5f..9f3dd279c 100644
--- a/src/video_dec/rgb.c
+++ b/src/video_dec/rgb.c
@@ -144,7 +144,7 @@ static void rgb_decode_data (video_decoder_t *this_gen,
/* minimal buffer size */
this->bufsize = this->width * this->height * this->bytes_per_pixel;
- this->buf = xine_xmalloc(this->bufsize);
+ this->buf = calloc(1, this->bufsize);
this->size = 0;
init_yuv_planes(&this->yuv_planes, this->width, this->height);
@@ -394,7 +394,7 @@ static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stre
rgb_decoder_t *this ;
- this = (rgb_decoder_t *) xine_xmalloc (sizeof (rgb_decoder_t));
+ this = (rgb_decoder_t *) calloc(1, sizeof(rgb_decoder_t));
this->video_decoder.decode_data = rgb_decode_data;
this->video_decoder.flush = rgb_flush;
@@ -416,7 +416,7 @@ static void *init_plugin (xine_t *xine, void *data) {
rgb_class_t *this;
- this = (rgb_class_t *) xine_xmalloc (sizeof (rgb_class_t));
+ this = (rgb_class_t *) calloc(1, sizeof(rgb_class_t));
this->decoder_class.open_plugin = open_plugin;
this->decoder_class.identifier = "RGB";