]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
One more assert()
authorAndreas Öman <andreas@lonelycoder.com>
Tue, 26 Oct 2010 17:34:42 +0000 (17:34 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Tue, 26 Oct 2010 17:34:42 +0000 (17:34 +0000)
src/parsers.c

index 42550ad11748a7d7cae9062cd5db2e896aab6fdd..c578883d96a31370cf958ca4a4a2d86a852ebe73 100644 (file)
@@ -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;