You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/mpegtsenc: allow any sensible PID for elementary and PMT PIDs
This sets the range of the first automatically assigned PMT PID or elementary stream PID parameters to [0x20, 0x1ffa]. You can still assign manually a PID for a stream using AVStream->id in the wider [0x10, 0x1ffe] range as specified by ISO13818-1. But since DVB and ATSC both reserves some PIDs, let's not allow them to be automatically assigned. Also make sure that assigned PID numbers are valid and fix the error message for the previous PID collision checks. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -58,6 +58,8 @@
|
||||
#define SIT_PID 0x001F /* Selection Information Table */
|
||||
/* PID from 0x0020 to 0x1FFA may be assigned as needed to PMT, elementary
|
||||
* streams and other data tables */
|
||||
#define FIRST_OTHER_PID 0x0020
|
||||
#define LAST_OTHER_PID 0x1FFA
|
||||
/* PID 0x1FFB is used by DigiCipher 2/ATSC MGT metadata */
|
||||
/* PID from 0x1FFC to 0x1FFE may be assigned as needed to PMT, elementary
|
||||
* streams and other data tables */
|
||||
|
Reference in New Issue
Block a user