Ticket #1673: 0001-Set-min-PID-from-0x0100-to-0x0010-for-data-pkt.patch

File 0001-Set-min-PID-from-0x0100-to-0x0010-for-data-pkt.patch, 1.1 KB (added by Magicking, 4 years ago)
  • libavformat/mpegtsenc.c

    From 7dcbd9e8676512311340cc4944585c69315a346f Mon Sep 17 00:00:00 2001
    From: Sylvain Laurent <syllaur@gmail.com>
    Date: Wed, 22 Aug 2012 17:29:50 +0200
    Subject: [PATCH] Set min PID from 0x0100 to 0x0010 for data pkt
    
    ---
     libavformat/mpegtsenc.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
    index d8e67c7..c38bfac 100644
    a b static const AVOption options[] = { 
    100100    { "mpegts_pmt_start_pid", "Set the first pid of the PMT.", 
    101101      offsetof(MpegTSWrite, pmt_start_pid), AV_OPT_TYPE_INT, {.dbl = 0x1000 }, 0x0010, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM}, 
    102102    { "mpegts_start_pid", "Set the first pid.", 
    103       offsetof(MpegTSWrite, start_pid), AV_OPT_TYPE_INT, {.dbl = 0x0100 }, 0x0100, 0x0f00, AV_OPT_FLAG_ENCODING_PARAM}, 
     103      offsetof(MpegTSWrite, start_pid), AV_OPT_TYPE_INT, {.dbl = 0x0100 }, 0x0010, 0x0f00, AV_OPT_FLAG_ENCODING_PARAM}, 
    104104    {"mpegts_m2ts_mode", "Enable m2ts mode.", 
    105105        offsetof(MpegTSWrite, m2ts_mode), AV_OPT_TYPE_INT, {.dbl = -1 }, 
    106106        -1,1, AV_OPT_FLAG_ENCODING_PARAM},