mpegtsenc: Lift limit on PMT PID
authorLoren Osborn <losborn@fwm.tv>
Mon, 3 Oct 2011 14:03:29 +0000 (16:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 11 Oct 2011 19:34:14 +0000 (21:34 +0200)
Fixes Ticket518
(cherry picked from commit bf5c3bac51e422580aad011fcd927c818542f054)

libavformat/mpegtsenc.c

index 7e96472..32dedfb 100644 (file)
@@ -84,7 +84,7 @@ static const AVOption options[] = {
     { "mpegts_service_id", "Set service_id field.",
       offsetof(MpegTSWrite, service_id), FF_OPT_TYPE_INT, {.dbl = 0x0001 }, 0x0001, 0xffff, AV_OPT_FLAG_ENCODING_PARAM},
     { "mpegts_pmt_start_pid", "Set the first pid of the PMT.",
-      offsetof(MpegTSWrite, pmt_start_pid), FF_OPT_TYPE_INT, {.dbl = 0x1000 }, 0x1000, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM},
+      offsetof(MpegTSWrite, pmt_start_pid), FF_OPT_TYPE_INT, {.dbl = 0x1000 }, 0x0010, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM},
     { "mpegts_start_pid", "Set the first pid.",
       offsetof(MpegTSWrite, start_pid), FF_OPT_TYPE_INT, {.dbl = 0x0100 }, 0x0100, 0x0f00, AV_OPT_FLAG_ENCODING_PARAM},
     { NULL },