From 677a1144b090b8575b95f71afa03691ba11d72b7 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Mon, 8 Mar 2010 22:44:03 +0000 Subject: Start continuity counter at 0 for pmt as well Originally committed as revision 22350 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpegtsenc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat') diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index a60c80822f..f5f6a6104d 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -397,6 +397,7 @@ static int mpegts_write_header(AVFormatContext *s) DEFAULT_PROVIDER_NAME, service_name); service->pmt.write_packet = section_write_packet; service->pmt.opaque = s; + service->pmt.cc = 15; ts->pat.pid = PAT_PID; ts->pat.cc = 15; // Initialize at 15 so that it wraps and be equal to 0 for the first packet we write -- cgit v1.2.3