On 05/17/2013 06:31 AM, Can Wu wrote:
> From f14c03f6b76f68dfbd1102f8b968b68b867b4751 Mon Sep 17 00:00:00 2001
> From: Can Wu <[email protected]>
> Date: Fri, 17 May 2013 11:41:44 +0800
> Subject: mpegtsenc: don't restrict pmt start pid value too big
> 
> Let user had more free values to use.
> ---
>  libavformat/mpegtsenc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
> index 8efd93e..670f44a 100644
> --- a/libavformat/mpegtsenc.c
> +++ b/libavformat/mpegtsenc.c
> @@ -96,7 +96,7 @@ static const AVOption options[] = {
>      { "mpegts_service_id", "Set service_id field.",
>        offsetof(MpegTSWrite, service_id), AV_OPT_TYPE_INT, {.i64 = 0x0001
> }, 0x0001, 0xffff, AV_OPT_FLAG_ENCODING_PARAM},
>      { "mpegts_pmt_start_pid", "Set the first pid of the PMT.",
> -      offsetof(MpegTSWrite, pmt_start_pid), AV_OPT_TYPE_INT, {.i64 =
> 0x1000 }, 0x1000, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM},
> +      offsetof(MpegTSWrite, pmt_start_pid), AV_OPT_TYPE_INT, {.i64 =
> 0x1000 }, 0x10, 0x1f00, AV_OPT_FLAG_ENCODING_PARAM},
>      { "mpegts_start_pid", "Set the first pid.",
>        offsetof(MpegTSWrite, start_pid), AV_OPT_TYPE_INT, {.i64 = 0x0100 },
> 0x0100, 0x0f00, AV_OPT_FLAG_ENCODING_PARAM},
>      { "muxrate", NULL, offsetof(MpegTSWrite, mux_rate), AV_OPT_TYPE_INT,
> {.i64 = 1}, 0, INT_MAX, AV_OPT_FLAG_ENCODING_PARAM},
> 

Kieran, what's your opinion?

lu
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to