Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-05-09 11:57:12 +0300
committerClément Bœsch <cboesch@gopro.com>2017-05-11 12:21:26 +0300
commit8ba1fc2a4ac21f56f90312ce3e2538d7a0b0f3b4 (patch)
tree8a7415ecddba67ab51aedd0c3dbc91d7d045a6d0 /ffprobe.c
parent7355c1dda2f8f21f699e720700c26dc8a666c6ec (diff)
ffprobe: discard non-selected streams
Diffstat (limited to 'ffprobe.c')
-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) {