Commit 8ba1fc2a authored by Clément Bœsch's avatar Clément Bœsch

ffprobe: discard non-selected streams

parent 7355c1dd
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment