mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-02 22:17:01 +08:00
mpegtsenc: make PMT PID really start on pmt_start_pid
This commit is contained in:
@ -421,7 +421,7 @@ static MpegTSService *mpegts_add_service(MpegTSWrite *ts,
|
|||||||
service = av_mallocz(sizeof(MpegTSService));
|
service = av_mallocz(sizeof(MpegTSService));
|
||||||
if (!service)
|
if (!service)
|
||||||
return NULL;
|
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->sid = sid;
|
||||||
service->provider_name = av_strdup(provider_name);
|
service->provider_name = av_strdup(provider_name);
|
||||||
service->name = av_strdup(name);
|
service->name = av_strdup(name);
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
1cebaf8b13700a3360e0c32551e36646 *./tests/data/lavf/lavf.ts
|
d260ac0534ff2e26b44b5192fd4fdc21 *./tests/data/lavf/lavf.ts
|
||||||
406644 ./tests/data/lavf/lavf.ts
|
406644 ./tests/data/lavf/lavf.ts
|
||||||
./tests/data/lavf/lavf.ts CRC=0x133216c1
|
./tests/data/lavf/lavf.ts CRC=0x133216c1
|
||||||
|
Reference in New Issue
Block a user