diff options
author | Clément Bœsch <cboesch@gopro.com> | 2017-05-09 11:57:12 +0300 |
---|---|---|
committer | Clément Bœsch <cboesch@gopro.com> | 2017-05-11 12:21:26 +0300 |
commit | 8ba1fc2a4ac21f56f90312ce3e2538d7a0b0f3b4 (patch) | |
tree | 8a7415ecddba67ab51aedd0c3dbc91d7d045a6d0 | |
parent | 7355c1dda2f8f21f699e720700c26dc8a666c6ec (diff) |
ffprobe: discard non-selected streams
-rw-r--r-- | ffprobe.c | 2 |
1 files changed, 2 insertions, 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) { |