[FFmpeg-devel] [PATCH] ffprobe: discard non-selected streams

Clément Bœsch u at pkh.me
Thu May 11 12:20:03 EEST 2017


On Tue, May 09, 2017 at 10:56:32AM +0200, Clément Bœsch wrote:
> From: Clément Bœsch <cboesch at gopro.com>
> 
> ---
>  ffprobe.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/ffprobe.c b/ffprobe.c
> index 8129bcedf0..f2a3cc7a73 100644
> --- a/ffprobe.c
> +++ b/ffprobe.c
> @@ -2886,6 +2886,8 @@ static int probe_file(WriterContext *wctx, const char *filename)
>          } else {
>              selected_streams[i] = 1;
>          }
> +        if (!selected_streams[i])
> +            ifile.fmt_ctx->streams[i]->discard = AVDISCARD_ALL;
>      }
>  
>      if (do_read_frames || do_read_packets) {

applied

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170511/06df60d7/attachment.sig>


More information about the ffmpeg-devel mailing list