summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-05-09 10:57:12 +0200
committerClément Bœsch <cboesch@gopro.com>2017-05-11 11:21:26 +0200
commit8ba1fc2a4ac21f56f90312ce3e2538d7a0b0f3b4 (patch)
tree8a7415ecddba67ab51aedd0c3dbc91d7d045a6d0
parent7355c1dda2f8f21f699e720700c26dc8a666c6ec (diff)
ffprobe: discard non-selected streams
-rw-r--r--ffprobe.c2
1 files changed, 2 insertions, 0 deletions
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) {