kopia lustrzana https://github.com/kierank/libmpegts
Update libmpegts.c
Fix access violation on `pcr_list` (found using valgrind)pull/5/head
rodzic
ae5c255cc2
commit
ec932c7f62
|
@ -2039,7 +2039,7 @@ int increase_pcr( ts_writer_t *w, int num_packets, int imaginary )
|
|||
|
||||
if( !imaginary )
|
||||
{
|
||||
if( w->num_pcrs > w->pcr_list_alloced )
|
||||
if( w->num_pcrs >= w->pcr_list_alloced )
|
||||
{
|
||||
temp = realloc( w->pcr_list, w->pcr_list_alloced * 2 * sizeof(int64_t) );
|
||||
if( !temp )
|
||||
|
|
Ładowanie…
Reference in New Issue