Commit d90fad27 authored by Laurent Aimar's avatar Laurent Aimar

* vlc_es.h: AAAHHH I HATE C++, else said: I need to cast malloc.

parent 4359eb91
......@@ -203,7 +203,7 @@ static inline void es_format_Copy( es_format_t *dst, es_format_t *src )
if( src->video.p_palette )
{
dst->video.p_palette = malloc( sizeof( video_palette_t ) );
dst->video.p_palette = (video_palette_t*)malloc( sizeof( video_palette_t ) );
memcpy( dst->video.p_palette, src->video.p_palette, sizeof( video_palette_t ) );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment