From ec932c7f6238703fadec61bb683162c468944485 Mon Sep 17 00:00:00 2001 From: leesei Date: Wed, 7 Jan 2015 14:07:38 +0800 Subject: [PATCH 1/2] Update libmpegts.c Fix access violation on `pcr_list` (found using valgrind) --- libmpegts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpegts.c b/libmpegts.c index e560912..732f50a 100644 --- a/libmpegts.c +++ b/libmpegts.c @@ -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 ) From ca811b4ea8e1508b0de9f5e41c99faccf93d23be Mon Sep 17 00:00:00 2001 From: Kieran Kunhya Date: Wed, 25 Nov 2020 18:35:13 +0000 Subject: [PATCH 2/2] Change default NIT --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.h b/common.h index fc371e6..5ec3197 100644 --- a/common.h +++ b/common.h @@ -72,7 +72,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