mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/mpegtsenc: cosmetic
Merge the short lines after the last commit Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
f1035b99fa
commit
0cc2d09e17
@ -1966,92 +1966,58 @@ static int mpegts_check_bitstream(struct AVFormatContext *s, const AVPacket *pkt
|
||||
#define ENC AV_OPT_FLAG_ENCODING_PARAM
|
||||
static const AVOption options[] = {
|
||||
{ "mpegts_transport_stream_id", "Set transport_stream_id field.",
|
||||
OFFSET(transport_stream_id), AV_OPT_TYPE_INT,
|
||||
{ .i64 = 0x0001 }, 0x0001, 0xffff, ENC },
|
||||
OFFSET(transport_stream_id), AV_OPT_TYPE_INT, { .i64 = 0x0001 }, 0x0001, 0xffff, ENC },
|
||||
{ "mpegts_original_network_id", "Set original_network_id field.",
|
||||
OFFSET(original_network_id), AV_OPT_TYPE_INT,
|
||||
{ .i64 = DVB_PRIVATE_NETWORK_START }, 0x0001, 0xffff, ENC },
|
||||
OFFSET(original_network_id), AV_OPT_TYPE_INT, { .i64 = DVB_PRIVATE_NETWORK_START }, 0x0001, 0xffff, ENC },
|
||||
{ "mpegts_service_id", "Set service_id field.",
|
||||
OFFSET(service_id), AV_OPT_TYPE_INT,
|
||||
{ .i64 = 0x0001 }, 0x0001, 0xffff, ENC },
|
||||
OFFSET(service_id), AV_OPT_TYPE_INT, { .i64 = 0x0001 }, 0x0001, 0xffff, ENC },
|
||||
{ "mpegts_service_type", "Set service_type field.",
|
||||
OFFSET(service_type), AV_OPT_TYPE_INT,
|
||||
{ .i64 = 0x01 }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
OFFSET(service_type), AV_OPT_TYPE_INT, { .i64 = 0x01 }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "digital_tv", "Digital Television.",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_DIGITAL_TV }, 0x01, 0xff,
|
||||
ENC, "mpegts_service_type" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_DIGITAL_TV }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "digital_radio", "Digital Radio.",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_DIGITAL_RADIO }, 0x01, 0xff,
|
||||
ENC, "mpegts_service_type" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_DIGITAL_RADIO }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "teletext", "Teletext.",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_TELETEXT }, 0x01, 0xff,
|
||||
ENC, "mpegts_service_type" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_TELETEXT }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "advanced_codec_digital_radio", "Advanced Codec Digital Radio.",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_RADIO }, 0x01, 0xff,
|
||||
ENC, "mpegts_service_type" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_RADIO }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "mpeg2_digital_hdtv", "MPEG2 Digital HDTV.",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_MPEG2_DIGITAL_HDTV }, 0x01, 0xff,
|
||||
ENC, "mpegts_service_type" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_MPEG2_DIGITAL_HDTV }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "advanced_codec_digital_sdtv", "Advanced Codec Digital SDTV.",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_SDTV }, 0x01, 0xff,
|
||||
ENC, "mpegts_service_type" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_SDTV }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "advanced_codec_digital_hdtv", "Advanced Codec Digital HDTV.",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_HDTV }, 0x01, 0xff,
|
||||
ENC, "mpegts_service_type" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_ADVANCED_CODEC_DIGITAL_HDTV }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "hevc_digital_hdtv", "HEVC Digital Television Service.",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_HEVC_DIGITAL_HDTV }, 0x01, 0xff,
|
||||
ENC, "mpegts_service_type" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_SERVICE_TYPE_HEVC_DIGITAL_HDTV }, 0x01, 0xff, ENC, "mpegts_service_type" },
|
||||
{ "mpegts_pmt_start_pid", "Set the first pid of the PMT.",
|
||||
OFFSET(pmt_start_pid), AV_OPT_TYPE_INT,
|
||||
{ .i64 = 0x1000 }, FIRST_OTHER_PID, LAST_OTHER_PID, ENC },
|
||||
OFFSET(pmt_start_pid), AV_OPT_TYPE_INT, { .i64 = 0x1000 }, FIRST_OTHER_PID, LAST_OTHER_PID, ENC },
|
||||
{ "mpegts_start_pid", "Set the first pid.",
|
||||
OFFSET(start_pid), AV_OPT_TYPE_INT,
|
||||
{ .i64 = 0x0100 }, FIRST_OTHER_PID, LAST_OTHER_PID, ENC },
|
||||
{ "mpegts_m2ts_mode", "Enable m2ts mode.",
|
||||
OFFSET(m2ts_mode), AV_OPT_TYPE_BOOL,
|
||||
{ .i64 = -1 }, -1, 1, ENC },
|
||||
{ "muxrate", NULL,
|
||||
OFFSET(mux_rate), AV_OPT_TYPE_INT,
|
||||
{ .i64 = 1 }, 0, INT_MAX, ENC },
|
||||
OFFSET(start_pid), AV_OPT_TYPE_INT, { .i64 = 0x0100 }, FIRST_OTHER_PID, LAST_OTHER_PID, ENC },
|
||||
{ "mpegts_m2ts_mode", "Enable m2ts mode.", OFFSET(m2ts_mode), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, ENC },
|
||||
{ "muxrate", NULL, OFFSET(mux_rate), AV_OPT_TYPE_INT, { .i64 = 1 }, 0, INT_MAX, ENC },
|
||||
{ "pes_payload_size", "Minimum PES packet payload in bytes",
|
||||
OFFSET(pes_payload_size), AV_OPT_TYPE_INT,
|
||||
{ .i64 = DEFAULT_PES_PAYLOAD_SIZE }, 0, INT_MAX, ENC },
|
||||
{ "mpegts_flags", "MPEG-TS muxing flags",
|
||||
OFFSET(flags), AV_OPT_TYPE_FLAGS, { .i64 = 0 }, 0, INT_MAX,
|
||||
ENC, "mpegts_flags" },
|
||||
OFFSET(pes_payload_size), AV_OPT_TYPE_INT, { .i64 = DEFAULT_PES_PAYLOAD_SIZE }, 0, INT_MAX, ENC },
|
||||
{ "mpegts_flags", "MPEG-TS muxing flags", OFFSET(flags), AV_OPT_TYPE_FLAGS, { .i64 = 0 }, 0, INT_MAX, ENC, "mpegts_flags" },
|
||||
{ "resend_headers", "Reemit PAT/PMT before writing the next packet",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_REEMIT_PAT_PMT }, 0, INT_MAX,
|
||||
ENC, "mpegts_flags" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_REEMIT_PAT_PMT }, 0, INT_MAX, ENC, "mpegts_flags" },
|
||||
{ "latm", "Use LATM packetization for AAC",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_AAC_LATM }, 0, INT_MAX,
|
||||
ENC, "mpegts_flags" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_AAC_LATM }, 0, INT_MAX, ENC, "mpegts_flags" },
|
||||
{ "pat_pmt_at_frames", "Reemit PAT and PMT at each video frame",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_PAT_PMT_AT_FRAMES}, 0, INT_MAX,
|
||||
ENC, "mpegts_flags" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_PAT_PMT_AT_FRAMES}, 0, INT_MAX, ENC, "mpegts_flags" },
|
||||
{ "system_b", "Conform to System B (DVB) instead of System A (ATSC)",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_SYSTEM_B }, 0, INT_MAX,
|
||||
ENC, "mpegts_flags" },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_SYSTEM_B }, 0, INT_MAX, ENC, "mpegts_flags" },
|
||||
{ "initial_discontinuity", "Mark initial packets as discontinuous",
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_DISCONT }, 0, INT_MAX,
|
||||
ENC, "mpegts_flags" },
|
||||
{ "mpegts_copyts", "don't offset dts/pts",
|
||||
OFFSET(copyts), AV_OPT_TYPE_BOOL,
|
||||
{ .i64 = -1 }, -1, 1, ENC },
|
||||
{ "tables_version", "set PAT, PMT and SDT version",
|
||||
OFFSET(tables_version), AV_OPT_TYPE_INT,
|
||||
{ .i64 = 0 }, 0, 31, ENC },
|
||||
0, AV_OPT_TYPE_CONST, { .i64 = MPEGTS_FLAG_DISCONT }, 0, INT_MAX, ENC, "mpegts_flags" },
|
||||
{ "mpegts_copyts", "don't offset dts/pts", OFFSET(copyts), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, ENC },
|
||||
{ "tables_version", "set PAT, PMT and SDT version", OFFSET(tables_version), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 31, ENC },
|
||||
{ "omit_video_pes_length", "Omit the PES packet length for video packets",
|
||||
OFFSET(omit_video_pes_length), AV_OPT_TYPE_BOOL,
|
||||
{ .i64 = 1 }, 0, 1, ENC },
|
||||
OFFSET(omit_video_pes_length), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, ENC },
|
||||
{ "pcr_period", "PCR retransmission time in milliseconds",
|
||||
OFFSET(pcr_period_ms), AV_OPT_TYPE_INT,
|
||||
{ .i64 = -1 }, -1, INT_MAX, ENC },
|
||||
OFFSET(pcr_period_ms), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, INT_MAX, ENC },
|
||||
{ "pat_period", "PAT/PMT retransmission time limit in seconds",
|
||||
OFFSET(pat_period_us), AV_OPT_TYPE_DURATION,
|
||||
{ .i64 = PAT_RETRANS_TIME * 1000LL }, 0, INT64_MAX, ENC },
|
||||
OFFSET(pat_period_us), AV_OPT_TYPE_DURATION, { .i64 = PAT_RETRANS_TIME * 1000LL }, 0, INT64_MAX, ENC },
|
||||
{ "sdt_period", "SDT retransmission time limit in seconds",
|
||||
OFFSET(sdt_period_us), AV_OPT_TYPE_DURATION,
|
||||
{ .i64 = SDT_RETRANS_TIME * 1000LL }, 0, INT64_MAX, ENC },
|
||||
OFFSET(sdt_period_us), AV_OPT_TYPE_DURATION, { .i64 = SDT_RETRANS_TIME * 1000LL }, 0, INT64_MAX, ENC },
|
||||
{ NULL },
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user