提交 740ad0d1 编写于 作者: M Mans Rullgard

mpegtsenc: fix PMT PID calculation

445996aa caused the PMT PID to be
off by one.  This corrects it.
Signed-off-by: NMans Rullgard <mans@mansr.com>
上级 365e3c78
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册