From f8fec0505294a4c05e5cfd9323e04258db465314 Mon Sep 17 00:00:00 2001 From: Anton Khirnov <anton@khirnov.net> Date: Tue, 26 Apr 2011 09:59:07 +0000 Subject: mpegtsenc: make PMT PID really start on pmt_start_pid --- libavformat/mpegtsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 2ffbd542fa..bf66aa0be3 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -421,7 +421,7 @@ static MpegTSService *mpegts_add_service(MpegTSWrite *ts, service = av_mallocz(sizeof(MpegTSService)); if (!service) return NULL; - service->pmt.pid = ts->pmt_start_pid + ts->nb_services - 1; + service->pmt.pid = ts->pmt_start_pid + ts->nb_services; service->sid = sid; service->provider_name = av_strdup(provider_name); service->name = av_strdup(name); -- cgit v1.2.3