aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-26 09:59:07 +0000
committerAnton Khirnov <anton@khirnov.net>2011-04-28 07:26:40 +0200
commitf8fec0505294a4c05e5cfd9323e04258db465314 (patch)
treedc3ad6cedec001220ab3281d880bbb09e3b5d4f0 /libavformat
parentf9fb574deee2db5db89e7ca7f8f12680fb2e6d7f (diff)
downloadffmpeg-f8fec0505294a4c05e5cfd9323e04258db465314.tar.gz
mpegtsenc: make PMT PID really start on pmt_start_pid
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpegtsenc.c2
1 files changed, 1 insertions, 1 deletions
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);