diff options
author | Mans Rullgard <mans@mansr.com> | 2011-01-31 16:49:10 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-31 18:25:48 +0100 |
commit | 2c30f7b3d7ea6ffe5370ea18e847455e7fae3940 (patch) | |
tree | c83730eb78b94310cdf8de1a6d00ddb35f0fc813 | |
parent | 0374152f8926bb3d0f2cd9cca56d12521fe0f71b (diff) | |
download | ffmpeg-2c30f7b3d7ea6ffe5370ea18e847455e7fae3940.tar.gz |
mpegtsenc: fix PMT PID calculation
445996aa51f4f1d9a26456a8511988291a720ba0 caused the PMT PID to be
off by one. This corrects it.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 740ad0d14d1eca7319a34866e896ad93cd65b9e9)
-rw-r--r-- | libavformat/mpegtsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index a1bd14ccb0..b1bccd1a8b 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -396,7 +396,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; + service->pmt.pid = ts->pmt_start_pid + ts->nb_services - 1; service->sid = sid; service->provider_name = av_strdup(provider_name); service->name = av_strdup(name); |