[FFmpeg-cvslog] mpegtsenc: stop impersonating ses in sdt
Francois Cartegnie
git at videolan.org
Thu Jun 23 08:20:23 CEST 2016
ffmpeg | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue May 17 09:54:30 2016 +0200| [393596f9d51134d6e45d81ae129223f4faea1232] | committer: Luca Barbato
mpegtsenc: stop impersonating ses in sdt
Unless specified, users must use non registered
range for network id
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=393596f9d51134d6e45d81ae129223f4faea1232
---
libavformat/mpegtsenc.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index eca348a..a52e684 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 },
More information about the ffmpeg-cvslog
mailing list