[FFmpeg-cvslog] ffprobe: discard non-selected streams

Clément Bœsch git at videolan.org
Thu May 11 12:19:27 EEST 2017


ffmpeg | branch: master | Clément Bœsch <cboesch at gopro.com> | Tue May  9 10:57:12 2017 +0200| [8ba1fc2a4ac21f56f90312ce3e2538d7a0b0f3b4] | committer: Clément Bœsch

ffprobe: discard non-selected streams

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8ba1fc2a4ac21f56f90312ce3e2538d7a0b0f3b4
---

 ffprobe.c | 2 ++
 1 file changed, 2 insertions(+)

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) {



More information about the ffmpeg-cvslog mailing list