Commit a334b00c authored by Nicolas George's avatar Nicolas George Committed by Stefano Sabatini

ffprobe: fix exit code with stream specifiers

Without this fix, ffprobe would exit with a failure exit code if a stream
specifier is given that selects the last stream.
Signed-off-by: 's avatarNicolas George <nicolas.george@normalesup.org>
parent 205092bf
......@@ -1921,6 +1921,7 @@ static int probe_file(WriterContext *wctx, const char *filename)
goto end;
else
selected_streams[i] = ret;
ret = 0;
} else {
selected_streams[i] = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment