diff options
author | Francois Cartegnie <fcvlcdev@free.fr> | 2016-05-17 09:54:30 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-05-17 10:29:36 +0200 |
commit | 393596f9d51134d6e45d81ae129223f4faea1232 (patch) | |
tree | fc0d13968b3593922e640816b8576583f13bee7c /libavformat/mpegtsenc.c | |
parent | ffa190d0479d2370dd89c95692f822cbff2cc24c (diff) | |
download | ffmpeg-393596f9d51134d6e45d81ae129223f4faea1232.tar.gz |
mpegtsenc: stop impersonating ses in sdt
Unless specified, users must use non registered
range for network id
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index eca348a007..a52e684c6f 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -37,6 +37,8 @@ /* write DVB SI sections */ +#define DVB_PRIVATE_NETWORK_START 0xff01 + /*********************************************/ /* mpegts section writer */ @@ -1234,7 +1236,7 @@ static const AVOption options[] = { { .i64 = 0x0001 }, 0x0001, 0xffff, AV_OPT_FLAG_ENCODING_PARAM }, { "mpegts_original_network_id", "Set original_network_id field.", offsetof(MpegTSWrite, original_network_id), AV_OPT_TYPE_INT, - { .i64 = 0x0001 }, 0x0001, 0xffff, AV_OPT_FLAG_ENCODING_PARAM }, + { .i64 = DVB_PRIVATE_NETWORK_START }, 0x0001, 0xffff, AV_OPT_FLAG_ENCODING_PARAM }, { "mpegts_service_id", "Set service_id field.", offsetof(MpegTSWrite, service_id), AV_OPT_TYPE_INT, { .i64 = 0x0001 }, 0x0001, 0xffff, AV_OPT_FLAG_ENCODING_PARAM }, |