[FFmpeg-devel] [PATCH] avformat/mpegts: add scan_all_pmts option

Timothy Gu timothygu99 at gmail.com
Tue Nov 4 04:55:42 CET 2014


On Nov 3, 2014 4:59 PM, "Michael Niedermayer" <michaelni at gmx.at> wrote:
>
> This allows selecting if the demuxer should consider all streams to be
> found after the first PMT and add further streams during decoding or if
it rather
> should scan all that are within the analyze-duration and other limits
>
> Fixes Ticket3762
>
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavformat/mpegts.c |    8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
> index 97e07a7..5691c5a 100644
> --- a/libavformat/mpegts.c
> +++ b/libavformat/mpegts.c

> +    {"scan_all_pmts",   "Scan and combine all PMTs",
offsetof(MpegTSContext, scan_all_pmts), AV_OPT_TYPE_INT,
> +     { .i64 =  -1}, -1, 1,  AV_OPT_FLAG_DECODING_PARAM },

Why not 0?

Timothy


More information about the ffmpeg-devel mailing list