Remove incorrect NULL check. Fixes some high bitrate streams.

pull/7/head
Kieran Kunhya 2016-07-07 16:19:43 +01:00
rodzic 5dbd014829
commit 6eaf49a5fd
1 zmienionych plików z 0 dodań i 5 usunięć

Wyświetl plik

@ -411,11 +411,6 @@ static int eject_queued_pmt( ts_writer_t *w, ts_int_program_t *program, bs_t *s
memmove( &program->pmt_packets[0], &program->pmt_packets[1], (program->num_queued_pmt-1) * sizeof(uint8_t*) );
temp = realloc( program->pmt_packets, (program->num_queued_pmt-1) * sizeof(uint8_t*) );
if( !temp )
{
fprintf( stderr, "malloc failed\n" );
return -1;
}
program->pmt_packets = temp;
program->num_queued_pmt--;