diff --git a/common.h b/common.h index 19a0a90..88ba3c9 100644 --- a/common.h +++ b/common.h @@ -75,7 +75,7 @@ /* NIT */ /* ETSI TS 101 162 - Temporary Private Use * Used for both "Original Network ID" and "Network ID" */ -#define DEFAULT_NID 0xff01 +#define DEFAULT_NID 0xffff /* Program and Program Element Descriptor Tags */ #define VIDEO_STREAM_DESCRIPTOR_TAG 0x2 diff --git a/libmpegts.c b/libmpegts.c index 8ffd84a..0110a32 100644 --- a/libmpegts.c +++ b/libmpegts.c @@ -2129,8 +2129,7 @@ int increase_pcr( ts_writer_t *w, int num_packets, int imaginary ) if( !imaginary ) { - // FIXME this is wrong for multiple packets - 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 )