Commit 71786a23 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vobsub: check memory error

parent cfb1f18e
......@@ -675,6 +675,8 @@ static int DemuxVobSub( demux_t *p_demux, block_t *p_bk )
/* Create a block */
p_pkt = block_New( p_demux, i_size );
if( unlikely(p_pkt == NULL) )
break;
memcpy( p_pkt->p_buffer, p, i_size);
p += i_size;
......
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