Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-26 13:59:07 +0400
committerAnton Khirnov <anton@khirnov.net>2011-04-28 09:26:40 +0400
commitf8fec0505294a4c05e5cfd9323e04258db465314 (patch)
treedc3ad6cedec001220ab3281d880bbb09e3b5d4f0
parentf9fb574deee2db5db89e7ca7f8f12680fb2e6d7f (diff)
mpegtsenc: make PMT PID really start on pmt_start_pid
-rw-r--r--libavformat/mpegtsenc.c2
-rw-r--r--tests/ref/lavf/ts2
2 files changed, 2 insertions, 2 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);
diff --git a/tests/ref/lavf/ts b/tests/ref/lavf/ts
index 4028be0a6e..989f8fbfba 100644
--- a/tests/ref/lavf/ts
+++ b/tests/ref/lavf/ts
@@ -1,3 +1,3 @@
-1cebaf8b13700a3360e0c32551e36646 *./tests/data/lavf/lavf.ts
+d260ac0534ff2e26b44b5192fd4fdc21 *./tests/data/lavf/lavf.ts
406644 ./tests/data/lavf/lavf.ts
./tests/data/lavf/lavf.ts CRC=0x133216c1