ffprobe: discard non-selected streams
This commit is contained in:
parent
7355c1dda2
commit
8ba1fc2a4a
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue