From: Andreas Ă–man Date: Tue, 26 Oct 2010 17:34:42 +0000 (+0000) Subject: One more assert() X-Git-Tag: 2.12~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f8724de87a0dacda0b8a91873a1be7328095180;p=thirdparty%2Ftvheadend.git One more assert() --- diff --git a/src/parsers.c b/src/parsers.c index 42550ad11..c578883d9 100644 --- a/src/parsers.c +++ b/src/parsers.c @@ -963,7 +963,8 @@ parse_mpeg2video(th_transport_t *t, th_stream_t *st, size_t len, st->st_curpkt = NULL; st->st_buf.sb_data = malloc(st->st_buf.sb_size); - + assert(st->st_buf.sb_data != NULL); + /* If we know the frame duration, increase DTS accordingly */ if(st->st_curdts != PTS_UNSET) st->st_curdts += st->st_frame_duration;