ffprobe: discard non-selected streams

This commit is contained in:
Clément Bœsch 2017-05-09 10:57:12 +02:00
parent 7355c1dda2
commit 8ba1fc2a4a

View File

@ -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) {