[vlc-devel] [RFC 04/38] demux/nuv: removed usage of abort
Filip Roséen
filip at videolabs.io
Mon Jun 27 13:43:15 CEST 2016
---
modules/demux/nuv.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c
index 1edc1fd..1dbf046 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -418,8 +418,11 @@ static int Demux( demux_t *p_demux )
{
/* for rtjpeg data, the header is also needed */
p_data = block_Realloc( p_data, NUV_FH_SIZE, fh.i_length );
- if( unlikely(!p_data) )
- abort();
+ if( unlikely( !p_data ) )
+ {
+ msg_Err( p_demux, "unable to reallocate block of size %d", fh.i_length );
+ return 0;
+ }
memcpy( p_data->p_buffer, p_sys->fh_buffer, NUV_FH_SIZE );
}
/* 0,1,2,3 -> rtjpeg, >=4 mpeg4 */
--
2.9.0
More information about the vlc-devel
mailing list