OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
365e3c7
)
mpegtsenc: fix PMT PID calculation
author
Mans Rullgard
<mans@mansr.com>
Mon, 31 Jan 2011 16:49:10 +0000
(16:49 +0000)
committer
Mans Rullgard
<mans@mansr.com>
Mon, 31 Jan 2011 16:58:23 +0000
(16:58 +0000)
445996aa51f4f1d9a26456a8511988291a720ba0
caused the PMT PID to be
off by one. This corrects it.
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/mpegtsenc.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegtsenc.c
b/libavformat/mpegtsenc.c
index
a1bd14c
..
b1bccd1
100644
(file)
--- 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);