Commit 773c5eff authored by Jean-Paul Saman's avatar Jean-Paul Saman

check for malloc return value

parent c3a591ae
......@@ -784,6 +784,7 @@ static picture_t *video_new_buffer( vlc_object_t *p_this,
p_pic = malloc( sizeof(picture_t) );
if( !p_pic ) return NULL;
fmt_out->video.i_chroma = fmt_out->i_codec;
vout_AllocatePicture( p_this, p_pic,
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