Ticket #518: ffmpeg-mpegts_pmt_start_pid_range_error.diff

File ffmpeg-mpegts_pmt_start_pid_range_error.diff, 913 bytes (added by Loren, 15 years ago)
  • libavformat/mpegtsenc.c

    diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
    index eb1e91c..1eb935c 100644
    a b static const AVOption options[] = {  
    8686    { "mpegts_service_id", "Set service_id field.",
    8787      offsetof(MpegTSWrite, service_id), FF_OPT_TYPE_INT, {.dbl = 0x0001 }, 0x0001, 0xffff, AV_OPT_FLAG_ENCODING_PARAM},
    8888    { "mpegts_pmt_start_pid", "Set the first pid of the PMT.",
    89       offsetof(MpegTSWrite, pmt_start_pid), FF_OPT_TYPE_INT, {.dbl = 0x1000 }, 0x1000, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM},
     89      offsetof(MpegTSWrite, pmt_start_pid), FF_OPT_TYPE_INT, {.dbl = 0x1000 }, 0x0010, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM},
    9090    { "mpegts_start_pid", "Set the first pid.",
    9191      offsetof(MpegTSWrite, start_pid), FF_OPT_TYPE_INT, {.dbl = 0x0100 }, 0x0100, 0x0f00, AV_OPT_FLAG_ENCODING_PARAM},
    9292    {"mpegts_m2ts_mode", "Enable m2ts mode.",