mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-30 13:50:50 +08:00
mpegtsenc: fix PMT PID calculation
445996aa51caused the PMT PID to be off by one. This corrects it. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit740ad0d14d)
This commit is contained in:
committed by
Michael Niedermayer
parent
0374152f89
commit
2c30f7b3d7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user