[vlc-commits] demux: ts: return instead of abort()

Francois Cartegnie git at videolan.org
Fri Aug 15 11:03:47 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Aug 15 18:02:42 2014 +0900| [21e724fa751d51b0f10d63ad5467e216383c3fa4] | committer: Francois Cartegnie

demux: ts: return instead of abort()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=21e724fa751d51b0f10d63ad5467e216383c3fa4
---

 modules/demux/ts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 14ea4f7..0244f58 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1723,7 +1723,7 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes )
             /* Append a \0 */
             p_block = block_Realloc( p_block, 0, p_block->i_buffer + 1 );
             if( !p_block )
-                abort();
+                return;
             p_block->p_buffer[p_block->i_buffer -1] = '\0';
         }
         else if( pid->es->fmt.i_codec == VLC_CODEC_TELETEXT )



More information about the vlc-commits mailing list